This project was made to learn the MERN Stack.
You can find the frontend here
Done:
- Add an item to the database
- Delete an item from the database
- GET route to get all items
- POST route to add an item
- DELETE route to remove an item
Pending:
- Edit an item in the database
- PUT route to edit an item
- MOAR tests using Mocha and maybe Chai
Run the following commands. First run:
npm install
This installs the dependencies.
Then run:
npm start
This project uses a local instance of MongoDB. I have included dummy data in data/seed_example_list.json
I used the following command:
mongoimport --db teej_mern --collection items --file data/seed_example_list.json
which creates a database called teej_mern
and a collection called items
and populates it with things inside seed_example_list.json