sleepagotchi-api is REST API written on Node.js with user creation and simple authentication.
- Use the npm to install dependencies.
npm install-
Create .env file (for reference see .env.example) and generate secret key.
-
Setup local.json file and connect to the database.
Use npm start to run API in development mode.
npm startUse npm run start:prod to run API in production mode.
npm run start:prodUse npm run migrate to run first migration which creates initial database tables.
npm run migrateAlso you can find Swagger documentation at 'http://localhost:8080/api-docs'