Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A basic front end is added so that people can use routes #90

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"python.pythonPath": "/home/siddharth/.virtualenvs/flask/bin/python"
}
6 changes: 5 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from flask import Flask
from flask import Flask,render_template
from flask_cors import CORS
from routes.routes import router

Expand All @@ -9,5 +9,9 @@

app.register_blueprint(router, url_prefix="/math")

@app.route("/")
def index():
return render_template('index.html')

if __name__ == '__main__':
app.run(port=PORT)
15 changes: 15 additions & 0 deletions templates/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>HACKTOBERFEST</title>
</head>
<body>
<h1>Welcome to Hacktober Fest</h1>
<input type="text" name="name" placeholder="ENTER YOUR NAME">
<input type="submit" name="submit" >

</body>
</html>