Ensure that you have the following installed on your system:
-
NodeJS
-
Git
-
Any IDE or code editor (AtomIDE recommended)
-
Any Bash interpreter (Git Bash recommended)
-
Clone this repo to your working directory, you can use the
download ZIPoption or just run$ git clone https://github.com/SHSGames/SHSGamesin your CWD. -
Open the folder named
SHSGames -
Install modules using npm
$ npm install(this has the potential to take a while on dated hardware or slow internet connections) -
After all the modules are installed, open your IDE or editor in the
SHSGamesfolder. -
Start the development server using
$ npm run dev(this can also be slow on dated hardware) -
Navigate to
http://localhost:8080/ -
Begin developing and happy hacking!
-
After you verified that the development build works, use
$ npm run buildto build SHSGames into a production ready bundle (also slow on old hardware). The production version is located in the/distfolder. -
After the build succeeded, use
$ npm run serveto launch the production instance of SHSGames. -
The production build is served on
http://localhost/. -
Production versions not served from
http://localhost/will redirect to HTTPS so it is required for professional production environments. -
Production builds have an aggressive caching algorithm. Even if the server is shut down, it will display SHSGames. You can use the
Clear cacheoption in the settings menu and disable service workers to prevent this.
More info can be found on our Developer's Wiki.
