Skip to content

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.

Notifications You must be signed in to change notification settings

KaiChuuu/Halo_Spartan_Database

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Halo Spartan Database

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.

What I learned

  • 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.

Dependencies

  • 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.

Extra skills

  • Usage of Postman.

  • Understanding of JSON

  • Usage of html, css

How the application works.

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.

The backend

Mongodb database :









Sending requests through Postman :









The frontend

React website :





Extra

  • Note that the .env file is not added with the Halo_Spartan_Database file because it contains user and pass.

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published