This is a project created for the "Everything you need to start as a web developer" workshop at HackCamp 2021. It replicates a very basic online food ordering service for the fictitious cafe HackCamp Cafe. It's built using Next.js and leverages Firebase as a database and hosting provider.
- Clone this repository to your computer
- Run
npm install
to install packages - Run
npm run dev
to start a local instance of the app - Open http://localhost:3000
Want to connect your own database and host to your domain? You can follow the Firebase documentation to create your own Firebase project for free. After your project is created, you can add a web app to it. This will allow you to get your Firebase keys by going to your project settings.
You want to copy the firebaseConfig
object in the code block near the end of your page. Replace the existing firebaseConfig
in the project file util/firebase.js
. Afterwards you can setup the database and hosting through the console or Firebase Tools CLI.