Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 1.32 KB

README.md

File metadata and controls

34 lines (29 loc) · 1.32 KB

Barcamp Cyberjaya

Internal tests npm version

Barcamp Cyberjaya 2021 API

How to run

  • Clone repo
  • yarn add
  • Add .env
DB=mongodb://localhost:27017/api-db
JWT_SECRET=My!@!Se3cr8tH4sh3

JWT decoded body

tokenBody = {
                userId: req.body.userId,
                email: req.body.email,
                picture: req.body.picture,
                permissionFlags: req.body.permissionFlags,
            }
  • sudo docker-compose up -d or add your own mongodb connection string in the .env
  • yarn start or yarn debug