Online free yahtzee by two students (Mickaël Rolland and Nathanaël Soulat).
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.
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
.
For the backend (to launch the backend server)
npm run start
For the frontend (to launch the frontend server)
npm run dev
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
cd frontend
npm run lint
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