Website and app backend for Aaveg.
NodeJS, Express
You need to install Node, npm and mongoDB
git clone https://github.com/SubashAravindan/AavegWebsite
cd AavegWebsite
cp config/config.example.js config/config.js
#Replace the values in config.js
npm install
npm install -g standard
npm install -g node-mongo-seeds
seed
mkdir logs && touch logs/erros.log logs/warnings.log- Follow the coding style given below
- Maintain the project structure (routes, conrollers etc).
- Use ES6+ features to write clean code. Especially async await, template strings etc
- Update README
- Add seed data if needed
- Use the winston library for logging.
We'll be using the standard JS coding style. Check https://standardjs.com/. Always stick to this style pls.
To check for errors, run :
standardMost of the times, this following command will magically fix it for you :)
standard --fix/api/events for event details /api/scoreboard for score details
To deploy the application run docker-compose up -d.
Initial build may take some time.
Once container is up, docker-compose exec -it <appContinerId> /bin/bash.
Inside the container run seed
