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 ZIP
option or just run$ git clone https://github.com/SHSGames/SHSGames
in 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
SHSGames
folder. -
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 build
to build SHSGames into a production ready bundle (also slow on old hardware). The production version is located in the/dist
folder. -
After the build succeeded, use
$ npm run serve
to 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 cache
option in the settings menu and disable service workers to prevent this.
More info can be found on our Developer's Wiki.