GithubHelp home page GithubHelp logo

mxjoly / next-pwa-firebase-starter Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 659 KB

This is a starter project using a server side rendering Next.js application on Firebase Cloud Function with Firebase Hosting.

License: MIT License

TypeScript 96.28% JavaScript 3.20% HTML 0.53%
pwa react nextjs express firebase firebase-functions firebase-hosting nodejs typescript starter-kit internationalization seo-optimization

next-pwa-firebase-starter's Introduction

Next.js Starter

This is a starter project implementing a server side rendering Next.js progressive web application on Firebase Cloud Function with Firebase Hosting. Enjoy it !

Stack

Features

  • ๐Ÿš€ Server side rendering application
  • ๐Ÿณโ€๐ŸŒˆ Internationalization
  • ๐Ÿš€ Progressive web app
  • ๐Ÿ’ฏ High Lighthouse scores
  • โœ… Cache control
  • ๐Ÿš€ SEO optimized
  • โœ… Twitter Cards meta
  • โœ… OpenGraph structured data
  • ๐Ÿ“ฆ Uses the popular, well-maintained Material UI React component library
  • ๐Ÿš€ Styles optimized (postcss, clean-css)

Quick Start

# Install dependencies
npm install

# Log in to firebase account
node_modules/.bin/firebase login

# Choose a firebase project
node_modules/.bin/firebase use <project_id>

# Build
npm run build-all

# Run in dev mode
npm run dev

# Deploy locally
npm run serve

# Deploy to firebase
npm run deploy-<dev|stag|prod>

Configuration

  • Firebase configuration :

    • Log in to your firebase account with the command node_modules/.bin/firebase login.
    • Update the file .firebaserc with your own firebase projects id. You can get them using node_modules/.bin/firebase projects:list.
    • Add your Firebase project configurations in /src/app/utils/firebase.js.
  • Common configurations (/src/app) :

    • You can configure somes in the folder utils : the common config of the application in config.js, the material-ui themes in the folder theme.
    • To configure the localization, update locales.json. The locale path folder is at utils/locales/.
  • Internationalization (/src/app):

    • The locale is implemented manually in the style of react-i18next. The locales can be configured with locales.json.
    • The locale folder is located in utils/locales/.
    • We attribute for each page a key to identify it in the locale resources. This keys are specified in locales.json.

next-pwa-firebase-starter's People

Contributors

mxjoly avatar

Stargazers

Sunil Soprey avatar Axel avatar Ahsan Habib avatar Webber Takken avatar

Watchers

James Cloos avatar  avatar

Forkers

gosunilgo

next-pwa-firebase-starter's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.