sriramr98 / NextJS-Typescript-Template

A simple NextJS Typescript template for my future projects with Firebase Authentication

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NextJS Typescript Boilerplate

This is a simple NextJS Boilerplate I created for my future projects. This boilerplate contains

  • NextJS
  • ReactJS
  • Typescript
  • Firebase
  • Material UI

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Make sure you have the following pre requisites before getting started

  • NodeJS (LTS)
  • Firebase Account
  • Knowledge on Redux and Redux Sagas

Installing

Firebase Setup

  • Log on to firebase
  • Create a new project
  • Create a new app in the project
  • Add the following env variables to .env file
FIREBASE_API_KEY={apiKey}

FIREBASE_AUTH_DOMAIN={authDomain}

FIREBASE_PROJECT_ID={projectId}

FIREBASE_APP_ID={appId}

Remove Git Setup (Optional)

If you want to remove my previous git commits and start with this repo with new commits

git remote rm origin

Then add your origin remote and start working

Start Dev Server

First, install all the dependencies

// yarn
yarn

// npm
npm install

Start local server

// yarn
yarn run dev

// npm
npm run dev

Built With

Contributing

Please read CONTRIBUTING.md ( In progress ) for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Sriram R - Initial work - Github

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

About

A simple NextJS Typescript template for my future projects with Firebase Authentication

License:MIT License


Languages

Language:TypeScript 86.3%Language:JavaScript 13.7%