Skip to content

Update README.md #126

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,18 @@ This template has been updated for:
| `npm run dev-nolog` | Launch a development web server without sending anonymous data (see "About log.js" below) |
| `npm run build-nolog` | Create a production build in the `dist` folder without sending anonymous data (see "About log.js" below) |

## Writing Code
## Getting started

After cloning the repo, run `npm install` from your project directory. Then, you can start the local development server by running `npm run dev`.
1. Either clone this repo, or download and unzip in a new project directory
2. Go to your project directory in the command prompt
3. Run `npm install` to install all dependencies
4. Run `npm run dev` to start the game from a local development server
5. Code and debug your game (this step will take the most time 😉)
6. Start `npm run build` to build the distributable package

The local development server runs on `http://localhost:8080` by default. Please see the webpack documentation if you wish to change this, or add SSL support.
Note, the local development server runs on `http://localhost:8080` by default. Please see the webpack documentation if you wish to change this, or add SSL support.

Once the server is running you can edit any of the files in the `src` folder. Webpack will automatically recompile your code and then reload the browser.
Once the server is running you can edit any of the files in the `src` folder. Webpack will automatically recompile your code and then reload the browser. Press `CTRL+C` to close the server.

## Template Project Structure

Expand Down