Boiler NodeJS - Typescript
- Typescript
- ESM
- Jest
- Prettier
- Example of Typescript code and unit testing
- Typeorm
- Mysql DB
- Typeorm Migrations & Seeding
- Zod
- JWT Tokens
- Image upload to AWS S3
- Stripe webhook implementation
Getting Started
- Prior Docker installation required
- Rename
.env.example
to.env
and set the variables
Clone the template:
$ git clone https://github.com/kevinefraim/boiler-node.git
$ cd boiler-node
$ npm install
Initialize the Server
$ npm run db-start
$ npm run watch
Migrations & Seeds
- Set
NODE_ENV=production
in.env
file - To generate a migration file and run it:
$ npm run migration:generate
$ npm run migration:up
- To clear the DB run:
$ npm run typeorm schema:drop