Skip to content

Commit 5a3c6b8

Browse files
committed
feat: Open source the project
First commit in public log
0 parents  commit 5a3c6b8

File tree

117 files changed

+70097
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+70097
-0
lines changed

.env.example

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Local dev
2+
NEXT_PUBLIC_FIREBASE_USE_EMULATOR=false
3+
4+
# Next.js app
5+
NEXT_PUBLIC_FIREBASE_API_KEY=''
6+
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=''
7+
NEXT_PUBLIC_FIREBASE_PROJECT_ID=''
8+
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=''
9+
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=''
10+
NEXT_PUBLIC_FIREBASE_APP_ID=''
11+
NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID=''
12+
13+
# Firebase Functions

.eslintrc.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"parserOptions": {
5+
"project": ["tsconfig.json"]
6+
},
7+
"extends": [
8+
"eslint:recommended",
9+
"plugin:import/typescript",
10+
"next/core-web-vitals",
11+
"plugin:@typescript-eslint/recommended",
12+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
13+
"prettier"
14+
],
15+
"plugins": ["prettier", "@typescript-eslint"],
16+
"rules": {
17+
"@typescript-eslint/switch-exhaustiveness-check": "error",
18+
"react/jsx-curly-brace-presence": [
19+
"error",
20+
{ "props": "never", "children": "always" }
21+
],
22+
"prettier/prettier": "error"
23+
}
24+
}

.firebaserc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"projects": {
3+
"default": "mike-and-holly"
4+
}
5+
}

.github/workflows/node.js.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Node.js CI
5+
6+
on:
7+
push:
8+
branches: [main]
9+
pull_request:
10+
branches: [main]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
node-version: [16.x]
19+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
20+
21+
steps:
22+
- uses: actions/checkout@v3
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v3
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
cache: 'npm'
28+
- run: npm ci && cd functions && npm ci
29+
- run: npm run build
30+
- run: npm test
31+
- run: npm run lint
32+
- run: cd functions && npm run build
33+
# - run: cd functions && npm test
34+
- run: cd functions && npm run lint

.gitignore

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
18+
# misc
19+
.DS_Store
20+
*.pem
21+
22+
# debug
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
*.log
27+
28+
# local env files
29+
.env.local
30+
.env.development.local
31+
.env.test.local
32+
.env.production.local
33+
34+
# vercel
35+
.vercel
36+
37+
# typescript
38+
*.tsbuildinfo
39+
40+
# custom
41+
.firebase-data

.gitpod.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This configuration file was automatically generated by Gitpod.
2+
# Please adjust to your needs (see https://www.gitpod.io/docs/config-gitpod-file)
3+
# and commit this file to your remote git repository to share the goodness with others.
4+
5+
tasks:
6+
- init: npm ci && cd functions && npm ci && cd .. && npm run build
7+
command: npm run dev

.prettierrc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
semi: false
2+
singleQuote: true
3+
printWidth: 80

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Running Locally
2+
3+
```bash
4+
npm ci
5+
npm run dev
6+
```
7+
8+
This will run Next.js locally on port 3000 and the Firebase emulators on a variety of ports (the Firebase admin UI will be on port 4000).

firebase.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"firestore": {
3+
"rules": "firestore.rules",
4+
"indexes": "firestore.indexes.json"
5+
},
6+
"functions": {
7+
"predeploy": [
8+
"npm --prefix \"$RESOURCE_DIR\" run lint",
9+
"npm --prefix \"$RESOURCE_DIR\" run build"
10+
]
11+
},
12+
"storage": {
13+
"rules": "storage.rules"
14+
},
15+
"emulators": {
16+
"auth": {
17+
"port": 9299,
18+
"host": "0.0.0.0"
19+
},
20+
"functions": {
21+
"port": 5001,
22+
"host": "0.0.0.0"
23+
},
24+
"firestore": {
25+
"port": 8080,
26+
"host": "0.0.0.0"
27+
},
28+
"pubsub": {
29+
"port": 8085,
30+
"host": "0.0.0.0"
31+
},
32+
"storage": {
33+
"port": 9199,
34+
"host": "0.0.0.0"
35+
},
36+
"ui": {
37+
"enabled": true
38+
}
39+
}
40+
}

firestore.indexes.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"indexes": [],
3+
"fieldOverrides": []
4+
}

0 commit comments

Comments
 (0)