Skip to content

Started template to start your project with NextJs, Material UI and Firebase

License

Notifications You must be signed in to change notification settings

mrcMesen/NextJs-MaterialUI-Firebase__Started

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Started Project - Next JS + Materiail UI and Firebase (Typescript)

Base project to start coding a Next Js App with Materiail UI and Firebase - Using Typescript

Initial Structure

-public              ~ Images and others assets
-src
---components        ~ Components for app
---pages             ~ Sreens for APP
-----api             ~ API next js
---services          ~ Services like firebase

Path Alias

When importing you can use @components/ to refer to src/components/* this is to avoid the path hell ../../../components.

Another Path Alias configurated: @pages/ @services/

Edith the file tsconfig.json to add more paths alias.

Getting Started

  • Download the project
  • Change the project name in package.json
  • Configurate Firebase .env file
  • Install and Run the development server:
yarn install
yarn dev

Firebase configuration

Edit the file .env with your Firebase JS SDK configuration.

NEXT_PUBLIC_FIREBASE_CONFIG="" // Json Formatt

In the route src/services/firebase.js you can find the firebase initialize app method.

Learn More

To learn more about Next.js

Take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

To learn more about Material UI

To learn more about Firebase

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

About

Started template to start your project with NextJs, Material UI and Firebase

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published