2015-07-11 09:50:35 +00:00
#Gwent-Online
#Introduction
2015-07-04 18:14:31 +00:00
Gwent-Online is an open-source project of the card-game Gwent.
2015-07-11 09:50:35 +00:00
#Install
##- Requirements
- [node.js ](https://nodejs.org/ ) installed
- [GraphicsMagick ](http://www.graphicsmagick.org ) installed (for generating sprites)
2015-12-23 12:09:07 +00:00
- Any Webserver like xampp, wamp, lamp etc
2015-07-11 09:50:35 +00:00
##- Build
2015-12-23 12:09:07 +00:00
Make sure to clone the project in your webserver root folder, otherwise you won't be able to access your client later.
The root folder is often called 'www' or 'htdocs', but depends on your installed webserver.
2015-07-11 09:50:35 +00:00
```git
2015-12-23 12:09:07 +00:00
cd ~/myWebserverRoot
git clone https://github.com/exane/not-gwent-online
cd not-gwent-online
2015-07-11 09:50:35 +00:00
npm install
2015-12-23 12:09:07 +00:00
npm run build
2015-07-11 09:50:35 +00:00
```
2015-12-23 12:09:07 +00:00
2015-07-11 09:50:35 +00:00
##- Config
- go to /public and open Config.js
- change hostname to your address. (e.g., "192.168.123.1") < br > Make sure you don't have a trailing slash after your IP or address. (e.g., "192.168.123.1/")
2015-12-23 12:09:07 +00:00
- If you have to change the port then make sure you change the port on your server as well. < br > You find the server port in /server/server.js on line #18 "app.listen(#port)";
2015-07-11 09:50:35 +00:00
##- Start Server
```
2015-12-23 12:09:07 +00:00
cd ~/myProjectDirectory/not-gwent-online
2015-07-11 09:50:35 +00:00
node server/server.js
```
##- Start Client
2015-12-23 12:09:07 +00:00
- Open your browser and go to "192.168.123.1/not-gwent-online/public" or wherever you saved your project.