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.
git clone --depth=1 https://github.com/krissendev/DognDice
cd DognDice
npm install
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.
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
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.