Coder Social home page Coder Social logo

yahtzee's Introduction

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

yahtzee's People

Contributors

nsoulat avatar mickaelrolland avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.