Skip to content

Commit 8b1debb

Browse files
committed
final
1 parent ee09bb7 commit 8b1debb

File tree

32 files changed

+13488
-9
lines changed

32 files changed

+13488
-9
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Project dependencies
2+
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
3+
node_modules
4+
.cache/
5+
# Build directory
6+
public/
7+
.DS_Store
8+
yarn-error.log

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 gatsbyjs
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+

README.md

Lines changed: 41 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,45 @@
1-
# gatsby-starter-default
2-
The default Gatsby starter
1+
# 🐣 Gatsby Firebase Authentication
32

4-
For an overview of the project structure please refer to the [Gatsby documentation - Building with Components](https://www.gatsbyjs.org/docs/building-with-components/)
3+
Your minimal yet extensive authentication starter project in Gatsby.js with Firebase and plain React.
54

6-
Install this starter (assuming Gatsby is installed) by running from your CLI:
7-
```
8-
gatsby new gatsby-example-site
9-
```
5+
* Powered by [Gatsby](https://github.com/gatsbyjs/gatsby)
6+
* [Live](https://react-firebase-authentication.wieruch.com/)
7+
* Found in [Taming the State in React](https://roadtoreact.com/course-details?courseId=TAMING_THE_STATE)
108

11-
## Deploy
9+
## Features
1210

13-
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/gatsbyjs/gatsby-starter-default)
11+
* uses:
12+
* only React (Gatsby.js)
13+
* firebase 4.8.0
14+
* features:
15+
* Sign In
16+
* Sign Up
17+
* Sign Out
18+
* Password Forget
19+
* Password Change
20+
* Protected Routes with Authorization
21+
* Database: Users
22+
23+
## Setup
24+
25+
* `git clone git@github.com:rwieruch/gatsby-firebase-authentication.git`
26+
* `cd gatsby-firebase-authentication`
27+
* `npm install`
28+
* `gatsby develop`
29+
* visit http://localhost:8000/
30+
* Use your own Firebase Credentials
31+
32+
### Use your own Firebase Credentials
33+
34+
* visit https://firebase.google.com/ and create a Firebase App
35+
* copy and paste your Credentials from your Firebase App into src/firebase/firebase.js
36+
* activate Email/Password Sign-In Method in your Firebase App
37+
38+
## Setup via Gatsby CLI
39+
40+
* `gatsby new gatsby-firebase-authentication git@github.com:rwieruch/gatsby-firebase-authentication.git`
41+
* `cd gatsby-firebase-authentication`
42+
* `npm install`
43+
* `gatsby develop`
44+
* visit http://localhost:8000/
45+
* Use your own Firebase Credentials

gatsby-browser.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* Implement Gatsby's Browser APIs in this file.
3+
*
4+
* See: https://www.gatsbyjs.org/docs/browser-apis/
5+
*/
6+
7+
// You can delete this file if you're not using it

gatsby-config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
siteMetadata: {
3+
title: `Gatsby Default Starter`,
4+
},
5+
plugins: [`gatsby-plugin-react-helmet`],
6+
}

gatsby-node.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* Implement Gatsby's Node APIs in this file.
3+
*
4+
* See: https://www.gatsbyjs.org/docs/node-apis/
5+
*/
6+
7+
// You can delete this file if you're not using it

gatsby-ssr.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* Implement Gatsby's SSR (Server Side Rendering) APIs in this file.
3+
*
4+
* See: https://www.gatsbyjs.org/docs/ssr-apis/
5+
*/
6+
7+
// You can delete this file if you're not using it

0 commit comments

Comments
 (0)