21 lines
479 B
Markdown
21 lines
479 B
Markdown
# Centralized Reporting Backend
|
|
|
|
Quick start
|
|
|
|
1. Copy env
|
|
- `cp .env.example .env`
|
|
2. Start MySQL and Redis
|
|
3. Run migration
|
|
- `node src/db/migrate.js`
|
|
4. Start dev server
|
|
- `npm run dev`
|
|
|
|
API
|
|
|
|
- Health: `GET /health`
|
|
- Users:
|
|
- `POST /api/v1/users/register` { email, password, firstName?, lastName? }
|
|
- `GET /api/v1/users/me` (Bearer token required)
|
|
- `PUT /api/v1/users/me` (Bearer token, form-data `profilePicture`)
|
|
- `DELETE /api/v1/users/me` (Bearer token)
|