For this task you will use this template repository. You have to create repository from that repo and send solution into it.
- Install Postgres (contains pgAdmin4)
- Postgres should work on localhost, on 5433 port
- Create user
- Run pgAdmin4
- Create database with name
gamedb
- In file
db.jschangeusernameandpasswordstrings to yours (DO NOT COMMIT THIS)
- Install dependencies (
npm i) - Run application via
npm run start
- Go to ElephantSQL website and register

- Use any team name, agree with terms of service check that you don't need to follow GDPR

- Press button "Create new Instance"

- Give instance name & select free plan ("Tiny turtle")

- Choose region AWS eu-west-1 (or eu-central-1)

- Confirm creation of the instance

- Click on the instance to see details

- In the details window necessary properties are:
DB_HOST=tai.db.elephantsql.com
DB=yourdatabasename
DB_USER=yourusername
DB_PASSWORD=yourpassworddb.jsfile beginning should look like this:
const Sequelize = require('sequelize');
require('dotenv').config();
const sequelize = new Sequelize(process.env.DB, process.env.DB_USER, process.env.DB_PASSWORD, {
host: process.env.DB_HOST,
dialect: 'postgres'
})DO NOT COMMIT .env file! (add it into .gitignore)
Your task is to find at least 5 compilation errors and 5 logic errors using the debugging tools.
You need fix them and make the broken application workable.
An additional task is to refactor the repository using modern Javascript syntax and fix codestyle issues.
