A simple boilerplate to start a backend proyect for Node with TypeScript and Express.
You only need Node.js, recommended LTS version. If you prefer, you can optionally use yarn as a package manager.
- Clone this repo
> git clone git@github.com:authc0d3/node-typescript-backend-boilerplate.git
- Install dependencies
> cd node-typescript-backend-boilerplate
> npm install
- Run database migrations
You need to install MySQL, create a database, modify the DATABASE_URL environment variable to set the correct URL and run the migrations:
> npx prisma migrate dev
- Start the server in development mode
> npm run dev
You will check in your browser with this address: http://localhost:8000
> npm run test
> npm run test:coverage
> npn run build
> npm run prod
You can configure some server properties like port or morgan mode using the .env file.
This project is under MIT.