This is a simple backend for the Table Tennis Hub project. (This project is still in development)
Be sure to have the following installed on your system:
- Node.js
- MySQL (or a MySQL server)
- Yarn (optional - if you prefer to use NPM, you can skip this step and use NPM instead of Yarn)
- Clone the repository
git clone https://github.com/Toukara/TTBackend
- Install dependencies
yarn install
- Create a
.env
file in the root directory of the project and fill it with the following information:
# Database
DB_HOST = # Host Database
DB_PORT = # Port Database
DB_DATABASE = # Database Name
DB_USERNAME = # Database Username
DB_PASSWORD = # Database Password
- Start the server
yarn start
- Go to http://localhost:1000 to see the API documentation