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

Initial commit #223

Open
wants to merge 26 commits 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
20 changes: 20 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
from flask import Flask, request, send_from_directory

app = Flask(__name__)

@app.route('/')
def main():
return "main"

@app.route('/sections/input-areas/inputs.html')
def serve_inputs_html():
return send_from_directory('static/sections/input-areas', 'inputs.html')

# Route to handle form submission
@app.route('/submit', methods=['POST'])
def submit():
first_name = request.form.get('first_name')
return f"Received First Name: {first_name}"

if __name__ == '__main__':
app.run(host='0.0.0.0', port=5000)
312 changes: 0 additions & 312 deletions assets/fonts/nucleo-icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/fonts/nucleo-icons.ttf
Binary file not shown.
Binary file modified assets/fonts/nucleo-icons.woff
Binary file not shown.
Binary file modified assets/fonts/nucleo-icons.woff2
Binary file not shown.
Binary file modified assets/fonts/nucleo.ttf
Binary file not shown.
Binary file modified assets/fonts/nucleo.woff
Binary file not shown.
Binary file modified assets/fonts/nucleo.woff2
Binary file not shown.
Binary file added assets/img/bg-stock-landing.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 21 additions & 17 deletions genezio.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
# The name of the project.
name: material-kit
# The region where the project is deployed.
region: us-east-1
# The version of the Genezio YAML configuration to parse.
yamlVersion: 2
# Information about the frontend, including the path, language, and publish directory.
# It is optional. It can also be an array if there are multiple frontends you want to deploy.
frontend:
# The folder where the frontend scripts will run.
path: ./
# The directory that will be published to the CDN. It is relative to the path.
publish: ./
scripts:
# List of scripts that build your frontend before deployment. It should populate the specified `publish` directory.
build: npm install
# List of scripts to run before deploying the frontend.
deploy: npm install
path: ./
publish: ./
scripts:
build: npm install
deploy: npm install
subdomain: flask-stock-pattern-recognition

backend:
path: ./
language:
name: python
packageManager: pip
functions:
- name: hello-world-flask-app-function
path: ./
handler: app
entry: app.py

name: flask-stock-pattern-recognition
region: eu-central-1
yamlVersion: 2
Loading