- Authentication using Passport
- Local and JWT strategies are implemented
- TypeORM to connect with MySQL
- Unit tests, integration tests and E2E tests
- Check continuous integration with github actions s
Clone the project
git clone https://github.com/TaoTrade/backend.gitGo to the project directory
cd backendInstall dependencies
npm installCreate a .env from the example one and customize it with your environment variables
cp .env.example .envStart the server
npm run start:devTo run this project, you will need to add the following environment variables to your .env file
MYSQL_HOST the host of the database to connect in the MySQL instance (required)
MYSQL_DB the name of the database to connect in the MySQL instance (required)
MYSQL_USER The name of the user to connect to the MySQL instance (required)
MYSQL_PASSWORD The password of the user to connect to the MySQL instance (required)
MYSQL_PORT The password of the user to connect to the MySQL instance (required)
DATABASE_URL a connection string to the MySQL instance, example postgres://postgres|@localhost/example-db (required)
PORT the port that Nest.js will listen at (required)
APP_SECRET the secret used to encrypt the session (required)
ALLOWED_ORIGINS a comma separated list of origins from which accept request (required)
You can copy the example .env and edit the values
cp .env.example .envServer: Typescript, MySQL, Nest.js, TypeORM, Passport
👤 Tyler McNiff
Release under the terms of MIT