By the end of this lesson. You should be able to set up two separate servers that will speak with each other -- one with frontend code and the other with react code.
This repository contains the backend for the w6-frontend
repository.
-
Fork & Clone this repository
-
cp nodemon.sample.json nodemon.json
-
Create a new Cluster on MongoDB Atlas titled something like
general-purpose
or reuse one you already have. -
Update the
MONGO_DB_CONNECTION
in yournodemon.json
file with the full connection string. Make sure you include the password you set up for the database and change the name of the database fromtest
to something lkejournal_dev
. -
npm install
-
npm run reset-db
-
npm run dev
Once installation is working, take a look at the existing code to make sure you understand what is happening. Then, try making requests to the API.