Set up an Express server for the back-end of your application:
Create a folder structure for the server side of your app.
Install any required dependencies.
Create a GitHub repo, and push this code to the repo.
Share the repo link with your team so that they are able to clone the project.
Use the CORS and express.json() Express middleware.
Add the basic routes for the API
Add the port for the server to listen on to an .env file (ie. PORT=8080)
Using .env variables will allow the rest of your team to use their local environment variables since you may be working with different values
Referring to an .env.sample file will help your team understand the variables included in the .env file since .env should be ignored from your git repository. Refer to the file in assets package for the example.
Set up an Express server for the back-end of your application:
Create a folder structure for the server side of your app.
Install any required dependencies.
Create a GitHub repo, and push this code to the repo.
Share the repo link with your team so that they are able to clone the project.
Use the CORS and express.json() Express middleware.
Add the basic routes for the API
Add the port for the server to listen on to an .env file (ie. PORT=8080)
Using .env variables will allow the rest of your team to use their local environment variables since you may be working with different values
Referring to an .env.sample file will help your team understand the variables included in the .env file since .env should be ignored from your git repository. Refer to the file in assets package for the example.