Skip to content

nsoulat/Yahtzee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yahtzee

Online free yahtzee by two students (Mickaël Rolland and Nathanaël Soulat).

How to play ?

Just go to http://node.fenouil.ovh1.ec-m.fr or http://node.girofle.ovh1.ec-m.fr and play ;) !

The game is in French but if you know about Yahtzee it will be okay.

How to setup the project ?

If you are using Windows, you must change the script-shell that npm is using: As it is explained here: if you have a x64 version, run

npm config set script-shell "C:\\Program Files\\git\\bin\\bash.exe"

else

npm config set script-shell "C:\\Program Files (x86)\\git\\bin\\bash.exe"

It can be reverted with

npm config delete script-shell

Clone the project then run

npm run update

npm run update will run npm ci for both backend and frontend packages. You can also use npm run install (running npm install for back and front) but npm run update is more adequate here according to npm.

Then in the backend/config folder open the file config.model.json and replace the values by yours (according to your PostgreSQL database, your server port, etc...) and rename the file into config.json.

Compiles and hot-reloads for development

For the backend (to launch the backend server)

npm run start

For the frontend (to launch the frontend server)

npm run dev

Compiles and minifies for production

npm run build

This will build the frontend and update the frontend/dist folder which is used by the backend server for static files. After the frontend build, you can start the backend server with :

npm run start

Lints and fixes files

cd frontend
npm run lint

Release management

This command line will be effective only for linux servers (like the ovh1.ec-m.fr that we use). Make sure that you have the rights to execute the scripts. You can set those rights with this command :

chmod -R u+x scripts/

To release a new version:

npm run prod

This command is equivalent to:

git fetch
git pull
npm run update
npm run build
screen -X -S node quit
cd backend
/usr/bin/screen -d -m -S node node server.js

Figma model

Figma Yahtzee

About

Online free yahtzee by two students

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •