Toggle navigation
Toggle navigation
This project
Loading...
Sign in
최원석
/
2021-1-database-project
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
1seok2
2021-02-24 21:38:39 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
936235785c80aac871d07985735427b2b59cafe3
93623578
1 parent
d961acd6
add flask
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
3 deletions
server.py
templates/index.html
server.py
View file @
9362357
import
os
from
config.firebase
import
db
from
flask
import
Flask
,
render_template
# data = {
# "age": 24,
# "name": "choi",
# "date": "2020.12.03"
# }
# db.child("name").child("name").update(data)
app
=
Flask
(
__name__
)
@app.route
(
"/"
)
def
home
():
return
render_template
(
'index.html'
)
print
(
"-"
*
60
)
if
__name__
==
"__main__"
:
print
(
"-"
*
60
)
print
(
" server is start"
)
print
(
"-"
*
60
)
db
.
child
(
"name"
)
.
push
({
"company"
:
"google"
}
)
app
.
run
(
debug
=
True
)
...
...
templates/index.html
0 → 100644
View file @
9362357
<!DOCTYPE html>
<html>
<body>
<h1>
메인 화면
</h1>
</body>
</html>
\ No newline at end of file
Please
register
or
login
to post a comment