Add firebase

Signed-off-by: András Schmelczer <andras@schmelczer.dev>
This commit is contained in:
Andras Schmelczer 2022-03-20 09:19:51 +01:00
parent 117fac031d
commit 365a8f3914
No known key found for this signature in database
GPG key ID: 39260B5B0614A13E
4 changed files with 93 additions and 0 deletions

5
.firebaserc Normal file
View file

@ -0,0 +1,5 @@
{
"projects": {
"default": "schmelczer-dev"
}
}

68
.gitignore vendored Normal file
View file

@ -0,0 +1,68 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
firebase-debug.log*
firebase-debug.*.log*
# Firebase cache
.firebase/
# Firebase config
# Uncomment this if you'd like others to create their own Firebase project.
# For a team working on the same Firebase project(s), it is recommended to leave
# it commented so all members can deploy to the same project(s) in .firebaserc.
# .firebaserc
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# nyc test coverage
.nyc_output
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
.DS_Store

7
README.md Normal file
View file

@ -0,0 +1,7 @@
# Fizika weboldal
## Deploy
```sh
firebase deploy --only hosting
```

13
firebase.json Normal file
View file

@ -0,0 +1,13 @@
{
"hosting": {
"public": ".",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"site": "fizika-schmelczer-dev",
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}