Skip to content

Commit 464f281

Browse files
EdansRocksAndrés Soto
andauthored
feat: TT-358 Use serverless to create Azure endpoint (#328)
* feat: TT-356 Read activities with an azure endpoint * refactor: TT-356 Solving code smells from Sonarcloud * refactor: TT-356 change directory from files in source to azure_time_tracker * test: TT-356 Adding azure endpoint api test * feat: TT-358 Use serverless to create Azure endpoint * refactor: TT-358 Changing time tracker backend app skeleton * refactor: TT-358 Change name to the domain partitioning * refactor: TT-358 Change route of activities data json file for azure functions * refactor: TT-358 Change folder structure according to new app skeleton * feat: TT-358 Add Makefile to install time tracker backend * refactor: TT-358 Change api test to use create temp activities fixture Co-authored-by: Andrés Soto <[email protected]>
1 parent 1d65c1d commit 464f281

39 files changed

+10784
-218
lines changed

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@ htmlcov/
2323
# virtual environments
2424
.venv
2525

26+
# Dependency directories
27+
node_modules
28+
29+
# Serverless directories
30+
.serverless/
31+
32+
# Azure Functions json config
33+
host.json
34+
local.settings.json
35+
2636
# Files generated for development
2737
.env
2838
timetracker-api-postman-collection.json

V2/.npmignore

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
9+
# Diagnostic reports (https://nodejs.org/api/report.html)
10+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11+
12+
# Runtime data
13+
pids
14+
*.pid
15+
*.seed
16+
*.pid.lock
17+
18+
# Directory for instrumented libs generated by jscoverage/JSCover
19+
lib-cov
20+
21+
# Coverage directory used by tools like istanbul
22+
coverage
23+
24+
# nyc test coverage
25+
.nyc_output
26+
27+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
28+
.grunt
29+
30+
# Bower dependency directory (https://bower.io/)
31+
bower_components
32+
33+
# node-waf configuration
34+
.lock-wscript
35+
36+
# Compiled binary addons (https://nodejs.org/api/addons.html)
37+
build/Release
38+
39+
# Dependency directories
40+
node_modules/
41+
jspm_packages/
42+
43+
# TypeScript v1 declaration files
44+
typings/
45+
46+
# Optional npm cache directory
47+
.npm
48+
49+
# Optional eslint cache
50+
.eslintcache
51+
52+
# Optional REPL history
53+
.node_repl_history
54+
55+
# Output of 'npm pack'
56+
*.tgz
57+
58+
# Yarn Integrity file
59+
.yarn-integrity
60+
61+
# dotenv environment variables file
62+
.env
63+
.env.test
64+
65+
# parcel-bundler cache (https://parceljs.org/)
66+
.cache
67+
68+
# next.js build output
69+
.next
70+
71+
# nuxt.js build output
72+
.nuxt
73+
74+
# vuepress build output
75+
.vuepress/dist
76+
77+
# Serverless directories
78+
.serverless/
79+
80+
# FuseBox cache
81+
.fusebox/
82+
83+
# DynamoDB Local files
84+
.dynamodb/
85+
86+
# TypeScript output
87+
dist
88+
out
89+
90+
# Azure Functions artifacts
91+
bin
92+
obj
93+
appsettings.json
94+
local.settings.json
95+
.python_packages/
96+
97+
# Python
98+
__pycache__/
99+
100+
# Virtual Environments
101+
env/
102+
.env/
103+
.venv/

V2/Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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+

V2/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Azure Functions
2+
3+
Refer to [Serverless docs](https://serverless.com/framework/docs/providers/azure/guide/intro/) for more information.

V2/host.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"version": "2.0",
3+
"extensionBundle": {
4+
"id": "Microsoft.Azure.Functions.ExtensionBundle",
5+
"version": "[1.*, 2.0.0)"
6+
}
7+
}

V2/local.settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"IsEncrypted":false,"Values":{"AzureWebJobsStorage":"UseDevelopmentStorage=true","FUNCTIONS_WORKER_RUNTIME":"python"}}

0 commit comments

Comments
 (0)