A web application that tells you the weather!
Created By:
Sachin Panayil, Steve Roy, David Perez, Zhi Wei Wu, Kamran Sajid
https://drive.google.com/file/d/1nIq8giT5OojkFIWAZf2V6TGZcL_eMqEX/view?usp=share_link
Windows:
o Install Mongo from this link
▪ https://www.mongodb.com/try/download/community
o Follow this tutorial to properly install mongo
▪ https://www.youtube.com/watch?v=oC6sKlhz0OE&t=555s
▪ Only follow up to 8:25
o Start MongoD by running the Mongod.exe program
▪ Should be located here
▪ C:\Program Files\MongoDB\Server\6.0\bin
o Open the client folder on a separate terminal
o Open the server folder on another separate terminal
o Run npm install on both terminals
o After installing is done, run npm run start
Troubleshooting
o If you can’t run your server folder properly, do the following
▪ Go into the server folder
▪ Find db,js
▪ Edit line 4 to
• await mongoose.connect('mongodb://127.0.0.1:27017/weatherapp');
MacOS:
-
Open terminal and run these commands
-
xcode-select --install
- (Installing brew)
- /bin/bash -c "$(curl -fsSLhttps://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- (Installing Mongo)
-
brew tap mongodb/brew
-
brew update
-
brew install [email protected]
- (Optional if error comes up when installing Mongo, run these commands and install mongo again)
- rm -fr $(brew --repo homebrew/core)
brew tap homebrew/core
-
Start up mongo before npm install and npm start on both folders
-
brew services start [email protected]
-
Start up App
-
Open both folders in separate terminals
-
Run npm install and npm start on server folder
-
Run npm install and npm start on client folder
Troubleshooting:
https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-os-x/
https://stackoverflow.com/questions/70561887/brew-installation-not-a-valid-reference-error