Skip to content

thisismegopi/invoice-manager

Repository files navigation

node-express-server

ToDo

✅ - Setup Basic Project with TypeScript
✅ - Setup linting and code formating
✅ - Setup Express Server
✅ - Setup TypeORM
✅ - Setup graceful server shutdown
✅ - Setup Logger
✅ - Setup OpenAPI
⏳ - Setup Testing library
⏳ - Dockerize application


How to start the application

Step 1: Run Postgres database container in docker sh postgres.sh

Step 2: Start a development server npm run dev

Step 3: Check the swagger API docs http://localhost:3000/api-docs/

screenshots-1

DB Diagram

screenshots-2

TypeORM CLI

To Create New Entity

npm run typeorm entity:create src/database/entities/{EntityName}

To Create New Migration

npm run typeorm migration:create src/database/migrations/{MigrationName}

To Generate New Migration from Entities - Link

npm run typeorm migration:generate src/database/migrations/{MigrationName} -- -p -d src/database

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published