=====================
This repository contains the source code for Overflow API. Below are instructions on how to clone the repository, work on the development branch, and submit changes via pull requests.
The Frontend setup instructions can be found in the frontend repository.
To get started with the project, follow these steps to clone the repository to your local machine:
To get started with the project, follow these steps to clone the repository to your local machine:
- Open a terminal or command prompt.
- Use
git clone
command to clone the repository:
git clone https://github.com/khoido2003/overflow-api.git
Once the repository is cloned, switch to the development branch to start working on your changes:
cd overflow-api
git fetch origin
git checkout development
Step 3: Create a .env
file in the root of the backend directory and add the necessary environment variables:
PORT=
NODE_ENV=
CORS_ORIGIN=
JWT_SECRET=
JWT_EXPIRES_IN=
JWT_COOKIES_EXPIRES_IN=
UPLOADTHING_SECRET=
UPLOADTHING_APP_ID=
DATABASE_URL=
Now you can make your changes to the codebase. After making changes, follow these steps to commit them:
git add -A
git commit -m "Your descriptive commit message here"
Once you are ready to submit your changes for review and inclusion in the main branch, follow these steps:
git push origin development
- Visit the repository on GitHub.
- Click on the "Pull requests" tab.
- Click the green "New pull request" button.
- Select main branch as the base branch and development branch as the compare branch.
- Review your changes and provide a descriptive title and comment for your pull request.
- Click on the "Create pull request" button to submit your changes.
After submitting your pull request, it will be reviewed by the project maintainers. Make sure to respond to any feedback or comments provided. Once approved, your changes will be merged into the main branch.