Skip to content

frontbastard/archery-contest

Repository files navigation

ArcheryContest

Architecture - https://www.mindmeister.com/map/2355617550?t=6BIg5PyPWI Trello - https://trello.com/b/hDbViME0/archery-contest Git - https://github.com/frontbastard/archery-contest

To make it work locally

  1. MondoDB
  • Download - https://www.mongodb.com/try/download/community
  • Extract, rename folder to just mongodb and place it in a convenient location
  • Create a folder next to it and name it mongodb-data
  • In the terminal run the command <PATH_TO_FOLDER>/mongodb/bin/mongod --dbpath=<PATH_TO_FOLDER>/mongodb-data (replace <PATH_TO_FOLDER> with the current path)
  1. Studio 3T
  1. Postman
  1. Archery Contest Backend
NODE_ENV='development'
PORT=3000
SENDGRID_API_KEY=''
MONGODB_URL='mongodb://127.0.0.1:27017/archery-contest-api'
JWT_SECRET='ABCD1234a' // any symbols
  • npm i
  • npm run dev
  1. Create master user
  • Create user in Postman - User -> Create User
  • Make it master if needed. In Studio 3T double click on localhost:27017 -> archery-contest-api -> Collections -> users, change role value to 1
  1. Add JWT token to the client
  • Create file token.ts in the src/app/core/interceptors/ folder with code:
const token = {
  master: 'PLACE_TOKEN_HERE',
  moderator: '',
  user: '',
};
export const jwtToken = token.master;
  1. git checkout dev
  2. npm i
  3. ng serve
  4. Open localhost:4200

About

Archery Contest

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published