Skip to content

Commit a075598

Browse files
committed
first commit
0 parents  commit a075598

File tree

5 files changed

+37
-0
lines changed

5 files changed

+37
-0
lines changed

.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Python
2+
# Byte-compiled / optimized / DLL files
3+
__pycache__/
4+
*.py[cod]
5+
*$py.class
6+
7+
# scrapy
8+
.scrapy
9+
10+
# vs code
11+
.vscode
12+
.vs
13+
.trash
14+
15+
# virtual environments
16+
.venv

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# time-tracker-api
2+
3+
## Set new environment in Windows
4+
- `mkdir .venv`
5+
- `python -m venv .venv`
6+
- `.venv\Scripts\activate.bat`
7+
- `pip install -r requirements/prod.txt`
8+
9+
## Example usage in Windows
10+
- `set FLASK_APP=time_tracker_api`
11+
- `flask run`
12+
- Open `http://127.0.0.1:5000/` in a browser

requirements/prod.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Flask
2+
flask-restplus
3+
flake8

time_tracker_api/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from flask import Flask
2+
3+
4+
def create_app():
5+
app = Flask(__name__)
6+
return app

time_tracker_api/projects/views.py

Whitespace-only changes.

0 commit comments

Comments
 (0)