Skip to content

Commit

Permalink
Merge pull request #1 from JoshuaConcon/backend_init
Browse files Browse the repository at this point in the history
Backend init
  • Loading branch information
Fides Linga authored Dec 1, 2018
2 parents 287d26b + 641bb76 commit 1355344
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
7 changes: 7 additions & 0 deletions utscfood-api/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# utscfood-api

## Installation

1. create the conda environment with `conda env create -f environment.yml`
2. activate the conda environment with `conda activate utscfood`

12 changes: 12 additions & 0 deletions utscfood-api/api.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from flask import Flask

# flask object
app = Flask(__name__)

@app.route('/')
def hellow_world():
return 'Hello, World!'

if __name__ == "__main__":
# run app if file is run directly
app.run()
4 changes: 4 additions & 0 deletions utscfood-api/environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name: utscfood
channels:
- defaults

5 changes: 5 additions & 0 deletions utscfood-api/sql.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import sqlite3

db_file_name = 'sql.db'

connection = sqlite3.connect(db_file_name)

0 comments on commit 1355344

Please sign in to comment.