- GitHub Repo : https://github.com/rohith0696/hunt-2
- Hosted App deployed on Heroku: https://hunt-2.herokuapp.com/
- Rohith Chittimalla
- Rajashekar Gande
- Platform : Node(15.1.0),
- Web Framework : Express,
- View Engine : EJS,
- DB : NoSQL,
- ORD : Mongoose,
- Web App Host : Heroku,
- Data Host : Atlas,
- Coding Standards : ESlint.
- Auto deploy is used from main repo.
- Steps for starting the cloned repository using the Powershell.
- Open PS as admin using the Powershell in the-Hunt Folder.
- Use "npm install" to install modules.
- Use "npm run dev" to start a local version.
- Open a browser to the URL provided in the powershell.
- Run MongoDB in the cloud - see https://www.mongodb.com/cloud/atlas
- index.js - Starting point for the application. Defines the express server, requires routes and models. Loads everything and begins listening for events.
- controllers/ - logic for handling client requests
- data/ - seed data loaded each time the application starts
- models/ - schema descriptions for custom data types
- routes/ - route definitions for the API
- utils/ - utilities
- views/ - EJS - embedded JavaScript and HTML used to create dynamic pages
- https://github.com/denisecase/node-express-mvc-ejs-start
- https://developer.mozilla.org/en-US/docs/Learn/Server-side/Express_Nodejs/development_environment
- https://developerhowto.com/2018/12/29/build-a-rest-api-with-node-js-and-express-js/
- https://github.com/Krishna-Koyyalamudi/The-Hunt
- https://github.com/Dixith1196/hunt
- Signup for Heroku account.
- Install Heroku CLI.
- Create a new app with a unique name (this will appear in your app URI).
- Go to App / Settings / Config Vars and add an ATLAS_URI key with the value from your .env.
- Go to App / Settings / Heroku Git URL and copy the URL to clipboard to paste in following command.
- Create a git alias named heroku that points to this URL. Either use TortoiseGit / Settings / Remote to create heroku and set it to the URL - or open PowerShell as Admin in your root project folder and use just your Heroku app name in the command below:
heroku login
heroku git:remote -a yourHerokuAppName
After making changes, open PowerShell as Admin in your root project folder:
heroku login
git push heroku master