Skip to content

Commit ed4394a

Browse files
Andrés Sotodsgarcia8
authored andcommitted
feat: TT-358 Add Makefile to install time tracker backend
1 parent 788759b commit ed4394a

File tree

4 files changed

+23
-5
lines changed

4 files changed

+23
-5
lines changed

V2/Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1+
install:
2+
@echo "Installing Time Tracker"
3+
npm install
4+
pip install --upgrade pip
5+
pip install -r requirements.txt
6+
@echo "Completed! "
7+
18
deploy:
2-
@echo "Using serverles.yml provider config to deploy"
9+
@echo "Using serverless.yml provider config to deploy"
310
@echo "Deploying Time Tracker to Azure..."
411
sls deploy
512
rm -rf .serverless

V2/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

V2/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
2-
"name": "azure-time-tracker",
2+
"name": "time-tracker-backend",
33
"version": "1.0.0",
44
"description": "",
55
"main": "index.js",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
7+
"test": "echo \"Error: no test specified\" && exit 1",
8+
"preinstall": "npm install -g serverless"
89
},
910
"author": "",
1011
"license": "ISC",

V2/requirements.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
1+
#Azure
12
azure.functions
2-
azure-functions-worker
3+
azure-functions-worker
4+
5+
# Tests
6+
pytest
7+
8+
# Mocking
9+
pytest-mock
10+
11+
# To create sample content in tests and API documentation
12+
Faker==4.0.2

0 commit comments

Comments
 (0)