Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 1.19 KB

Backend-Installation.md

File metadata and controls

35 lines (21 loc) · 1.19 KB

Instructions ~ Hussain

I did my work on Windows, so if you're using a Mac, you may need to run different commands or install different versions. This guide assumes you have completed the normal installation written by Max.

Installation

Install MongoDB to host the database locally. You can download it from here.

To run the full program, you need three things running:

  • Expo for the frontend
  • Node.js server for the backend
  • MongoDB for the database (usually starts with your computer)

To run the Node.js server, use the following commands:

  cd .\CloudChasers\backend
  node .\startServer.js

For managing the DB I recommend using MongoDBCompass

One small thing I haven't figured out yet is IP addresses, so in the meantime you need to run ipconfig in the terminal then update the IPv4 address in the IPIndex file

Documentation

Useful Documentation:

Mongoose -NodeJS interface with MongoDB

NodeJS

ExpressJS -The standard web framework for NodeJS