Using node, created an express backend server that connected to a mongod database.
Used Rest API to communicate between the database and the node server.
The frontend application was a React website. The React app fetched data from the express server by proxying requests via the proxy line.
-
How to set up an express server using node.
-
Learned how to create a database cluster using mongoDB. Also learned how to access the database through an express server.
-
How to use Rest Api to connect to the database.
-
How to create a React website.
-
How to fetch data from an express server by proxying requests.
-
body-parser - Parses our requests and gives us the correct way to handle our data.
-
cors - Allows the application to work cross domain. (localhost:3000 and beyond)
-
dotenv - Used to hide private information
-
Express - allows node application to handle incoming requests. (I.e become a server)
-
mongoose - an Object Data Modeling library for mongodb and node. Provides data modeling for the data.
-
nodemon - detect changes in code and automatically update the node application.
-
Usage of Postman.
-
Understanding of JSON
-
Usage of html, css
If its hard to see the images, recommend just viewing the images through the directory (Halo_Spartan_Database_Img).
Theres two parts of this project.
- Note that the .env file is not added with the Halo_Spartan_Database file because it contains user and pass.