A simple API made with Typescript, TypeORM for user authentication with JWT
- Clone the repository:
$ git clone https://github.com/jucelinodev/typescript-typeorm-api-jwt.git
- Enter directory
$ cd /typescript-typeorm-api-jwt
- To install all dependencies, you must run the following command:
$ npm install
- Change .env.exemple to .env and enter valid data for database connection and other settings:
# Auth
APP_SECRET=
# Database
DB_HOST=
DB_USER=
DB_PASS=
DB_NAME=
- Start server dev:
$ npm run dev
- Generate build:
$ npm run build
- To run project:
$ npm start