Skip to content

redacademy/pong-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

20 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Pong Game Starter

A starter project for a basic pong game using SVGs.

Setup

Ensure you have Node.js installed first.

Install dependencies:

$ npm install

Run locally with the Parcel dev server:

$ npm start

Once you run the start command you can access your project at http://localhost:3000.

Read more about the Parcel web application bundler here.

Deploy

The deployment workflow for this project will be a bit different from what you've used when deploying simple static websites.

To deploy your finished Pong project as a GitHub page, you must first update the predeploy script in the package.json file with the name of your repo.

For example, if your repo URL is:

https://github.com/bob/pong-project

Update the predeploy script as follows:

"predeploy": "rm -rf dist && parcel build index.html --public-url /pong-project",

Once you have done this, you can run:

$ npm run deploy

Now check out your deployed site ๐Ÿ™‚

About

๐Ÿ“ Seed project for Pong game WDP

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published