Welcome to the EcoQuest Backend! Our game promotes sustainable living by engaging users in activities that encourage responsible consumption. By completing these events, users can earn credits that can be redeemed for prizes.
Prerequisites NodeJS LTS v18.14.0
- Install nvm on your machine
- run
nvm install v18.14.0 - run
nvm use - Run
npm installin the working directory to install required packages - Reference
.env.exampleand create your own.envfile - Run
npm run db:createto create the database. - Run
npm run db:migrateto migrate models. - Run
npm run db:seedto seed database. - Run
npm run devto start the development server
src/
├─ consts/
│ ├─ environment.ts
│ ├─ userFriendlyMessages.ts
├─ controllers/
│ ├─ ExampleController.ts
├─ db/
│ ├─ migrations/
│ ├─ seeders/
│ ├─ index.ts
├─ middlewares/
├─ models/
│ ├─ Example.ts
│ ├─ index.ts
├─ repositories/
│ ├─ BaseRepository.ts
├─ routes/
│ ├─ ExampleRoutes.ts
├─ services/
│ ├─ ExampleService.ts
├─ types/
│ ├─ index.ts
├─ utils/
│ ├─ container.ts
│ ├─ dbUtils.ts
├─ app.ts
├─ server.ts
- Use Gitmoji to add emojis to your commit messages
- Use the following format for your commit messages
- ✨
feat: add new feature - 🐛
fix: fix a bug - ♻️
refactor: refactor code - 🎨
style: change styling - 🔥
chore: remove unused code - 📝
docs: update documentation - 📦
package: update package - 🚀
deploy: deploy to production - 🗑️
waste: remove unused code
- ✨

