https://github.com/narayan954/skillbee-task
Web application that generates a random activity using the Bored API
https://github.com/narayan954/skillbee-task
Last synced: 3 months ago
JSON representation
Web application that generates a random activity using the Bored API
- Host: GitHub
- URL: https://github.com/narayan954/skillbee-task
- Owner: narayan954
- Created: 2023-04-06T18:29:42.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-04-07T21:59:55.000Z (about 3 years ago)
- Last Synced: 2025-03-12T00:18:35.990Z (over 1 year ago)
- Language: HTML
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Bored API Activity Generator
This is a simple web application that generates a random activity using the Bored API. The application is built using Node.js and Handlebars, and can be used to generate any number of static HTML pages.
Getting Started
To use this application, first clone the repository to your local machine:
bash command
```
git clone https://github.com/yourusername/bored-api-activity-generator.git
```
Then, install the required dependencies:
```
npm install
```
To generate static pages, run the following command:
```
npm run generate
```
This will fetch 10 random activities in sequence from the Bored API, compile a Handlebars template, and generate an HTML page using the data and template. The generated pages will be saved in real time in the pages folder.
To generate any required number of pages, modify the generatePages function parameter in index.js to as many pages as you need (defaults 10).
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
Bored API for providing the activity data
Handlebars for the templating engine
axios for the HTTP client
Node.js for the JavaScript runtime