Skip to content

A rotating dog in space soon to be dice rolling game with doggo pictures. Pictures by api https://dog.ceo/api 3d engine from: https://threejs.org/

License

Notifications You must be signed in to change notification settings

krissendev/DognDice-PWA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A dog flying in space

DognDice - PWA

Overview

A rotating dice in the works of becomming a dice rolling game with dog pictures. Project uses:

  • Express.js
  • Service workers
  • Dog-api for dog pictures. The api call currently works but the code has been disabled for the PWA service offline worker functionality. Currently using local image as placeholder until both features work seemlessly together.
  • Three.js for 3D display and animation.
  • Datgui for 3D development assistance

The project is set up as a progressive web app (PWA) for offline use through cookies.

Prerequisite

Installation in terminal

git clone --depth=1 https://github.com/krissendev/DognDice
cd DognDice
npm install

Run Program

npm run dev

While "npm run dev" is running click link/url in terminal to open the app. Most likely this is http://localhost:3001.

Close Program

While port is running in the termial hover mouse over terminal and press >Ctrl + C> to terminate process.

Note: It is also worth noting that the program uses Service Workers.
This means the program will still be running after program termination since it is stored in browser cache.

Option 1:
Right Mouse Click Inspect Element. Navigate on the top left bar to "Application"/ "Service Workers" Press "Unregister".
It should no longer be stored

or

Option 2:
Simply clear your browser cache.
It should no longer be stored

Futher Expansion of the Project

The Dog API works but the code has been disabled for checking out the PWA offline feature.
Will in the feature re-enable the fetch api and combine both approaches.
This will eventually be turned into some sort of dice rolling game. Already looking into Ammo.js for dice rolling physics.

About

A rotating dog in space soon to be dice rolling game with doggo pictures. Pictures by api https://dog.ceo/api 3d engine from: https://threejs.org/

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published