In this repository is the code for the MambleoFC APi. It serves as the backend REST API code for the MamboleoFC Website.
In order to set this up to work on it, there are a few steps that need to be done.
- Cloning the repository
git clone https://github.com/tomvisions/mamboleofc-api.git && cd mamboleofc-api
- Create an .env file and place the following variables
TOKEN_SECRET=<TOKEN_SECRET> - for authentication
LOCAL=true
DATABASE=simpleplay
USERNAME=<username for your database>
PASSWORD=<passowrd for the database>
- Import the SQL dump file from the repo and import it into the simpleplay database (coming soon!)
- npm ci
- npm run start
And enjoy running the API locally