1.0.7 ā¢ Published 2 years ago
@kevinefra/boiler-node-kevinefra v1.0.7
Boiler NodeJS - Typescript
:chart_with_upwards_trend: Ready to Develop: Works out of the box for most Node.js projects.
ā All initial tools included and installed:
- 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