Automated Education Gamified Instruction System
A project for gamification of education by:
- [@asumandang](https://github.com/asumandang)
- [@crucibles](https://github.com/crucibles)
- [@Donex26](https://github.com/Donex26)
Run npm start
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
MongoDB server should be used and run. MongoServer is at http://localhost:3000/
. The app will automatically redirect all api request to the mongodb server.
Run ng build
to build the project. The build artifacts will be stored in the public/
directory.
Link: https://docs.google.com/spreadsheets/d/1JteO9-EI1kHj9ishR2URVCTScbQUnaJJZ2O_rmc5P40/edit?usp=sharing
To delete the old one:
- open cmd: admin
- (cd to Program Files/MongoDb/Server/3.6/bin)
- run mongo
- use up-goe-db
- db.dropDatabase()
To restore the updated:
mongorestore -d up-goe-db "path where you downloaded the db folder"
Sample: mongorestore -d up-goe-db C:/db_backups/up-goe-db
To back up your current DB and push it to git. (Mongo Dump)
- open cmd: admin
- (cd to Program Files/MongoDb/Server/3.6/bin)
- mongodump -d "database_name" -p "location to save"
Sample: mongodump -d up-goe-db -p C:\Users\cedric\project-aegis\db_backups\up-goe-db
Build the angular app, put the dist folder to the server folders. Set up the server to point to index.html and to that dist/
For Test Deployment:
Pre-requirments:
- latest version of master
- npm install -g localtunnel // reference: https://www.npmjs.com/package/localtunnel
Deploying...
Step 1 Open your latest code. In the terminal, instead of the usual "npm start" for development, I added a deploy script.
Run "npm run deploy"
Step 2 After a successful run of "npm run deploy" Proceed to localhost:3000 and test it If it's okay proceed to Step 3
Step 3 Make your pc as a server using local tunnel
run "lt --port 3000" in another terminal
Step 4 There will be a hostname that will be given, try that hostname accessing in your browser.
Voila!!