Installation and Configuration - lkacoy/webdev-cs5610-project GitHub Wiki
To run the Node code locally:
- Clone the repository
- If you are running the Angular code locally, you will need to update line 14 in the server.js file to point to the local Angular instance.
- In the terminal, go to the source directory (/webdev-cs5610-project)
- In the terminal, run "node server.js"
- Go to "http://localhost:3000". This will display a message titled "Hello World"
To run the Angular code locally:
- Clone the repository
- If you are running the Node code locally, all of the services will need to be updated to point to "http://localhost:3000/api/..." instead of the Node Heroku instance. All services are located under src/app/services
- In the terminal, go to the source directory (<location/webdev-cs5610-project-angular)
- In the terminal, run "npm run devStart"
- Go to "http://localhost:4200". This will display the course home page. From there, you will see a link underneath my picture to run the project. Alternatively, you can enter "http://localhost:4200/home" to go straight to the project home page.
I am using mLab as a plugin to my Heroku instance. The database url to connect to Mongo locally is mongodb://:@ds159631.mlab.com:59631/heroku_kw3mvrqs. In dbuser and dbpassword, enter in the same credentials that you would if you were logging in as the default admin in my website application.