A straightforward, forkable project for building a web application.
You can skip this for now and do it later if you don't immediately need a database for your app.
- Set up a Firebase account, if you haven't already.
- Create a project on Firebase. Under "Develop," you should see "Authentication." Click that, then click on "Sign-in Method." There's a link in the top right "WEB SETUP." Click that. That should give you a popup with all the info you need for step 3.
- Create
/config/firebase-config.js
as the following file:
const config = {
apiKey: 'jhkGKjhLKGJGUhKHgKJOIuyHGIUB8YIUgYtIUy7iGyGk',
authDomain: 'your-auth-domain.firebaseapp.com',
projectId: 'project-id'
}
module.exports = config
- Run
yarn && yarn dev
in a terminal of your choice - Build something beautiful and useful
- Reap the wild profits and popularity of your new project
You can find pages in the /pages
directory—to create a new page in your app (like /about, or /dashboard), just create a new js file! You can find great documentation about this on the Next.js repository.
There's also a /components
directory. This is where components go. There's some base styling, but just enough to get you started. There's a single "child" component, but you can rename or delete as you see fit.
Have fun, and good luck! If you run into a bugs, open an issue, or email me.