Fuck boredom.
A casa a fare cosa was born during Italy's COVID19 lockdown. I wanted to provide a way of discovering new things to do while staying safe at home. Boredom is what threatens the lockdown the most.
A casa a fare cosa was initiated using create-react-app
. It features a single page web app with the tips, and a form for suggestions. The data is fetched through a serverless API, deployed on Zeit Now (you can find the ultra simple API in the api
folder). The data is stored on Google Firebase in a NoSQL database.
I don't know how you could use this, but you can use the public API by making requests to /api/dbtip/
to get a random tip in JSON, and /api/suggest
to make a new suggestion.
You can just clone this repository, install the requirements by running
$ npm install
and then start the project.
To actually have it fetch data you've got to define an ENV variable GOOGLE_JSON
containing the base64 encoding of your Firebase credential JSON. This was made to be able to store the credentials in a Zeit Now secret.
Pull this repository for updates.
To view the website in your browser just run
$ npm start
To create a production build, run
$ npm run build
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- 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 GPL License. See LICENSE
for more information.
Project Link: https://github.com/simmontali/acasaafarecosa