- docs: https://docs.google.com/document/d/1pCdrbqCXFOat7dLoNG91BZaSON4g-3R_2e0dbLvyQ8E/edit?usp=sharing
- simple setup, project structure, prettier(done)/eslint(maybe)
- create
.env
file for important env_vars likeMONGO_URI
- be able to connect to mongodb (via container rn)
- dockerize for easy dev env and prod builds
- create schemas
- services/handlers
- conrollers/routes
- endpoint:
/organizations
-> CRUD - endpoint:
/users
-> CRUD - endpoint:
/posts
-> CRUD
- endpoint:
- auth and validation
- basic email and password login
- hash password with
bcrypt
before storing to database - ensure protected routes -> ex. users can only view their own org posts
- ...
- start via
docker
:
docker compose up -d
- test connection via
curl
-> should return "HEALTHY"
curl http://localhost:3500/
- stop when done
docker compose down
- prod:
npm run start