/erudite-server

:nerd_face: :pencil2: A server for Erudit game

Primary LanguageTypeScriptMIT LicenseMIT

🤓 Erudit game 🤓

This is the backend of Erudite game application. Here is the frontend.

Check out the deployed version here!

This is a Russian Scrabble-like game which is made in accordance with the rules of the board version. Rules in Russian can be found here.

Details

This project was created using Express.js server and Sequelize ORM.

installation

  • Run npm install.
  • Connect to a local database (configuration is in the file /config/config.json).
  • Set SENDGRID_API_KEY environment variable to send email notifications and restore password emails.
  • Start the server with npm run start for production or npm run dev for development.

Database migration

To create migration run npm run db:makemigrations.

To apply migration rerun the application.

Local develop with docker-compose

Run

docker-compose up -d 

to start local postgres14 container. See docker-compose.yaml for more details

Technologies used

  • express
  • web sockets