This project uses Express.js to serve up an API server. You should start by forking or cloning this repo, and then adding your teammates as collaborators.
Then, follow the same steps we've been following:
npm install
npm run start-dev
This project runs in the Node.js runtime environment. We're not using Webpack here, but we are using a tool called nodemon, which re-runs our app whenever we save a file. You should see a message in the terminal telling you that the server is running on port 8080.
When an error occurs on the backend (Express), you'll see a message in the terminal. When an error occurs on the frontend (React), you'll see that error in the browser.
This project has a vercel.json file, which will make it easier to deploy this project to Vercel. You will need to:
- Create a Hobby Vercel account (free)
- Connect your GitHub account. You can do this on sign up.
- Add a new project. You should see a list of your recent GitHub repos. Find this one.
- Select Import. The default options should be just fine. Click confirm and wait a few minutes.
- You'll be assigned a random public URL – it will be very long! Try it out by pasting the URL in the browser, and then also in Postman.