- Clone this repository
cd digikare-didomi
npm install
Create a .env file and define the following :
JWT_SECRET
- JSON Web Token encryption passwordJWT_TIME
- JSON Web Token expiration time (default: 10 minutes)
- Typescript
- Sequelize
- SQLite
- Jest
- ESLint
debug
- Launch the server in debug mode using ts-node-devstart
- Start the compiled version of the serverclean
- Remove directories (coverage
,build
,tmp
)build
- Build projectbuild:watch
- Build project watchbuild:release
- Build project for releaselint
- Lint source files and teststest
- Run teststest:watch
- Interactive watch mode to automatically re-run tests
Route | Method | Body | Params | |
---|---|---|---|---|
/users | POST | Create a new User | { email: string! } | - |
/users | GET | Get current User | - | - |
/users | DELETE | Delete current User | - | - |
/events | POST | Create a new Event | { id: string ("email_notifications" / "sms_notifications")!, enabled: boolean! } | - |