nicmart-dev / linguistnow

LinguistNow simplifies the hassle of finding available linguists for translation projects.
https://linguistnow.netlify.app
1 stars 1 forks source link

Back-End Setup: Initial Folder Structure & Git Repo #4

Closed nicmart-dev closed 1 month ago

nicmart-dev commented 1 month ago

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.

nicmart-dev commented 1 month ago

For a single developer working on a capstone project with a tight deadline of one week, using a single repository for both the React app and the Express server is generally the best choice: https://chatgpt.com/share/e2423f4b-87cf-4b1d-bdb6-b1bc58ff5025