Skip to content

bittensor-exchange/api.bittensor.exchange

Repository files navigation

🛂 tensor exchange backend using Nest.js

Features

  • 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

Run Locally

Clone the project

  git clone https://github.com/TaoTrade/backend.git

Go to the project directory

  cd backend

Install dependencies

  npm install

Create a .env from the example one and customize it with your environment variables

  cp .env.example .env

Start the server

  npm run start:dev

Environment Variables

To 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 .env

Tech Stack

Server: Typescript, MySQL, Nest.js, TypeORM, Passport

Author

👤 Tyler McNiff

License

Release under the terms of MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •