An ever evolving starting point for wonderful ideas... ✨
Setup .env from the default values in .env.development
cp .env.development .env
Install node dependencies
pnpm i
Start dependencies in docker
make start
Run tests
pnpm run test
Start the development server
pnpm run dev
Or, start the service alongside all dependencies in docker
make start-all
The service will start listening on port 4001
Migrations files are tracked in the /migrations directory
make migrate [...args]
up [N] Apply all or N up migrations
down [N] Apply all or N down migrations
create NAME Create a set of timestamped up/down migrations titled NAME
Migrations are internally handled with https://github.com/golang-migrate/migrate
- Find and replace all occurrences of
starter-service
to whatever other name you'd prefer for your project. - Update
src/config/index.ts
to update default app configuration
This project was bootstrapped from github.com/SwarnimWalavalkar/webServiceStarter