cd Backend
npm install
.env
in the Backend
folderFill out the following variables as instructed:
leaguestats
and its using the default postgresSQL port 5432 and default username postgres
. You can add a password to your postgres
database user using the following SQL command: ALTER USER postgres WITH PASSWORD 'new_password';
#.env
#Backend server variables
PORT=3000
DBS_HOSTNAME="localhost" DBS_PORT=5432 DBS_DB_NAME="leaguestats" DBS_USERNAME="postgres" DBS_PASSWORD={YOUR_LOCAL_DB_PASSWORD}
RIOT_API_KEY={YOUR_DEVELOPMENT_RIOT_API_KEY}
cd Backend
npm run start