Hades is a application that aim to facilitate the start of multiple game server using the same template configuration. It also allows you to access a fully fonctional terminal to control the running server.
Clone the git repository, then copy the config.default.js
to config.js
, change it as you want then build the project for production or run the development servers.
The game configuration files syntax is explained in the wiki : https://github.com/AIR-EISTI/hades/wiki/Games-Configuration.
Run ng build --prod
to build the project for production. The build artifacts will be stored in the dist/
directory.
Run npm run start
to start Hades web server (if you want Hades to be able to change the user running a game, it should be running as root).
Serve the static files using a web server like nginx and proxy requests to /api
to hades.
In separate terminal run
npm run start:dev:client
, this will start the development server for the front end, available by default at http://localhost:4200/npm run start:dev:server
, starts the API server with auto reload when source files change, available by default at http://localhost:5050.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.