Live version running at: carcassonne.sonnywebdesign.com
Because this repository consists in the client side of the application only, if you want to run the whole application in your own local environment, you will need to download and run the server side first.
First clone this repo to your local machine with:
git clone https://github.com/andreasonny83/carcassonne-scoreboard-client.gitThen, cd inside the project folder with:
cd !$This project uses NodeJS, npm Bower and Gulp. Make sure you have them installed on your machine before proceeding.
Then, install all the project's dependencies
$ npm install
# Or Yarn for a faster installation
$ yarn installThis will install all the local dependencies the application needs to run in development mode.
If you have correctly installed all the dependencies, you will now be able to run your local project simply with:
npm startfrom inside the main carcassonne-scoreboard-client folder,
this command will trigger a gulp task responsible for initiate a local version
of the application and open a new tab in your browser to render the
localhost:5000 where the application will be rendered.
The default server app is supposed to respond at: http://localhost:3000
however, if you want to use a different address to host your server app,
you can either use environment variables or manually update the api.js file
stored inside your server/ folder
API_URL: The API address for your client application (default is `http://localhost`)
API_PORT: The API port number for your client application (default is `5000`)
DEBUG: Enable/disable debug messages (default is `false`)
npm run buildIf present, gulp usemin will overwrite a client/app/config.dist.js
with client/app/config.js during the build and deploy tasks.
In this way you can simply clone your client/app/config.js to a new
client/app/config.dist.js in where storing your production information.
npm run serve:distThis task will generate a new distribution project and will serve that using local server.
We really appreciate your collaborations and feedbacks!
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Stage your files:
git add . - Commit your changes:
npm run commit - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
Changelog available here
MIT © Andrea Sonny