Skip to content

Popov-Dmitry/secret-santa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Secret Santa

Secret Santa is a game in which group participants pair up and exchange gifts anonymously. This application has developed to help you play this game online!

Main page

Used technologies

How to run it on your computer

  • Install Node.js, npm and PostgreSQL
  • Clone this repository
  • In the file ./server/.env change DB access variables:
    • DB_NAME
    • DB_USER
    • DB_PASSWORD
    • DB_HOST
    • DB_PORT
  • Optionally change the secret key for encrypting/decrypting JWT tokens JWT_SECRET_KEY
  • In the file ./client/.env change variable REACT_APP_API_URL - server url
  • In the file ./server run the server application by typing in terminal node index.js
  • In the file ./client run the client application by typing in terminal npm start
  • Go to your browser and type http://localhost:3000/

Website pages

  • / - main page
  • /registration - registration page
  • /login - login page
  • /lobbies - page with open lobbies
  • /lobbies/invite/INVITE_CODE - lobby invitation page, where INVITE_CODE - invite code
  • /lobbies/new - lobby creation page
  • /lobbies/my - page with a list of lobbies in which the user participates as a player or as a creator
  • /account - user info edit page