Table of Contents
- This is a simple app that gives you a random task and a related photo.
- They are fetched from Bored API and Unsplash API respectively.
- This app demonstrates how efficiently I made Axios(Fetch) calls to two different APIs sequentially.
- It also demonstrates how I managed preloading, loading and status states based on async functions.
- Wrote custom functions so that you will see the photo only when it is downloaded completely.
- Was looking for a way to hide API keys. Had two options. So I obviously chose the harder and more interesting one. 😉
- Integrated Netlify Serverless Functions (Which is based on Amazon AWS Lambda) to perform backend tasks.
- All API calls are made from the backend functions, keeping API credentials secret.
- A productive task to do today.
- A nice refreshing photo in the background.
- A carefully designed UI so that the text is distinguishable regardless of the photo behind.
- You can just click on the text and write whatever you want.
- Photos recieved from Unsplash are not always accurate. But what can you expect without integrating Ai 😅
🌐 The site is already live at: https://splendid-narwhal-4770fd.netlify.app/
OR
🖥️ You can test it on your local machine by following the steps below.
-
Open your projects base folder and launch any terminal of your choice.
-
Run this command:
npm install npm@latest -g npm install netlify-cli -g
-
Clone the repo
git clone https://github.com/webdevsk/Random-task-today.git
-
Install NPM packages
npm install
-
Fill in a
.env.local
file following the patterns ofenvSample.txt
-
Run Dev server along with serverless functions
netlify dev
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Project Link: https://github.com/webdevsk/Random-task-today