Simple HTML5 roulette for picking song title, genre, and style using Web Animations and AudioContext API
Demo is available at https://sync-perfect.vercel.app/
You can watch the video where this project was used, and uploaded on Charming Jo YouTube channel by clicking the image below.
- Pug
- CSS3 (SCSS)
- Web Animations API
- AudioContext API
- Node 14 above or nvm installed
- Yarn or NPM installed
To install dependencies:
yarn install
To start the development server:
yarn start
To build the project for production:
yarn build
All the build files can be found in /dist
folder.
This app works fine under common static web hosting choices. Here's a general outline of the steps you can follow:
-
Set up your CI/CD pipeline to use Node.js and arn images. (If you prefer not to use a CI/CD pipeline, make sure you have both Node.js and Yarn installed on your machine.)
-
Start by installing the project dependencies. Run the command
yarn install
to ensure that all the necessary npm packages are installed and ready for the build process. To optimize costs and improve the efficiency of your CI/CD pipeline, you can consider adding a cache for thenode_modules
directory. Check your specific CI/CD tool's documentation for cache configuration options. -
Next, you'll need to build the project. Use the command
yarn build
to initiate the build process. This command will compile and bundle the source code, generating the assets required for hosting. -
Once the build process is complete, you'll need to copy all the generated assets located under the
/dist
directory. The specific command to accomplish this may vary depending on the CI/CD tool and OS you're using. Typically, you'll need to include a step in your pipeline that copies the contents of the/dist
directory to a storage accessible by your chosen static web hosting service.