Skip to content
This repository was archived by the owner on Oct 11, 2023. It is now read-only.

Commit 3d92bda

Browse files
authored
Merge pull request #86 from daniv-msft/daniv/addBikeSharingSample
Add BikeSharingApp to samples
2 parents d2cb310 + e3719a7 commit 3d92bda

File tree

226 files changed

+11156
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

226 files changed

+11156
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.sh text eol=lf

samples/BikeSharingApp/.gitignore

Lines changed: 258 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,258 @@
1+
contoso-bikerental/charts/*
2+
3+
## Ignore Visual Studio temporary files, build results, and
4+
## files generated by popular Visual Studio add-ons.
5+
6+
*.sln
7+
8+
# User-specific files
9+
*.suo
10+
*.user
11+
*.userosscache
12+
*.sln.docstates
13+
14+
# User-specific files (MonoDevelop/Xamarin Studio)
15+
*.userprefs
16+
17+
# Build results
18+
[Dd]ebug/
19+
[Dd]ebugPublic/
20+
[Rr]elease/
21+
[Rr]eleases/
22+
x64/
23+
x86/
24+
bld/
25+
[Bb]in/
26+
[Oo]bj/
27+
[Ll]og/
28+
29+
# Visual Studio 2015 cache/options directory
30+
.vs/
31+
# Uncomment if you have tasks that create the project's static files in wwwroot
32+
#wwwroot/
33+
34+
# MSTest test Results
35+
[Tt]est[Rr]esult*/
36+
[Bb]uild[Ll]og.*
37+
38+
# NUNIT
39+
*.VisualState.xml
40+
TestResult.xml
41+
42+
# Build Results of an ATL Project
43+
[Dd]ebugPS/
44+
[Rr]eleasePS/
45+
dlldata.c
46+
47+
# DNX
48+
project.lock.json
49+
artifacts/
50+
51+
*_i.c
52+
*_p.c
53+
*_i.h
54+
*.ilk
55+
*.meta
56+
*.obj
57+
*.pch
58+
*.pdb
59+
*.pgc
60+
*.pgd
61+
*.rsp
62+
*.sbr
63+
*.tlb
64+
*.tli
65+
*.tlh
66+
*.tmp
67+
*.tmp_proj
68+
*.log
69+
*.vspscc
70+
*.vssscc
71+
.builds
72+
*.pidb
73+
*.svclog
74+
*.scc
75+
76+
# Chutzpah Test files
77+
_Chutzpah*
78+
79+
# Visual C++ cache files
80+
ipch/
81+
*.aps
82+
*.ncb
83+
*.opendb
84+
*.opensdf
85+
*.sdf
86+
*.cachefile
87+
*.VC.db
88+
*.VC.VC.opendb
89+
90+
# Visual Studio profiler
91+
*.psess
92+
*.vsp
93+
*.vspx
94+
*.sap
95+
96+
# TFS 2012 Local Workspace
97+
$tf/
98+
99+
# Guidance Automation Toolkit
100+
*.gpState
101+
102+
# ReSharper is a .NET coding add-in
103+
_ReSharper*/
104+
*.[Rr]e[Ss]harper
105+
*.DotSettings.user
106+
107+
# JustCode is a .NET coding add-in
108+
.JustCode
109+
110+
# TeamCity is a build add-in
111+
_TeamCity*
112+
113+
# DotCover is a Code Coverage Tool
114+
*.dotCover
115+
116+
# NCrunch
117+
_NCrunch_*
118+
.*crunch*.local.xml
119+
nCrunchTemp_*
120+
121+
# MightyMoose
122+
*.mm.*
123+
AutoTest.Net/
124+
125+
# Web workbench (sass)
126+
.sass-cache/
127+
128+
# Installshield output folder
129+
[Ee]xpress/
130+
131+
# DocProject is a documentation generator add-in
132+
DocProject/buildhelp/
133+
DocProject/Help/*.HxT
134+
DocProject/Help/*.HxC
135+
DocProject/Help/*.hhc
136+
DocProject/Help/*.hhk
137+
DocProject/Help/*.hhp
138+
DocProject/Help/Html2
139+
DocProject/Help/html
140+
141+
# Click-Once directory
142+
publish/
143+
144+
# Publish Web Output
145+
*.[Pp]ublish.xml
146+
*.azurePubxml
147+
# TODO: Comment the next line if you want to checkin your web deploy settings
148+
# but database connection strings (with potential passwords) will be unencrypted
149+
*.pubxml
150+
*.publishproj
151+
152+
# Microsoft Azure Web App publish settings. Comment the next line if you want to
153+
# checkin your Azure Web App publish settings, but sensitive information contained
154+
# in these scripts will be unencrypted
155+
PublishScripts/
156+
157+
# NuGet Packages
158+
*.nupkg
159+
# The packages folder can be ignored because of Package Restore
160+
**/packages/*
161+
# except build/, which is used as an MSBuild target.
162+
!**/packages/build/
163+
# Uncomment if necessary however generally it will be regenerated when needed
164+
#!**/packages/repositories.config
165+
# NuGet v3's project.json files produces more ignoreable files
166+
*.nuget.props
167+
*.nuget.targets
168+
169+
# Microsoft Azure Build Output
170+
csx/
171+
*.build.csdef
172+
173+
# Microsoft Azure Emulator
174+
ecf/
175+
rcf/
176+
177+
# Windows Store app package directories and files
178+
AppPackages/
179+
BundleArtifacts/
180+
Package.StoreAssociation.xml
181+
_pkginfo.txt
182+
183+
# Visual Studio cache files
184+
# files ending in .cache can be ignored
185+
*.[Cc]ache
186+
# but keep track of directories ending in .cache
187+
!*.[Cc]ache/
188+
189+
# Others
190+
ClientBin/
191+
~$*
192+
*~
193+
*.dbmdl
194+
*.dbproj.schemaview
195+
*.pfx
196+
*.publishsettings
197+
node_modules/
198+
orleans.codegen.cs
199+
.vscode
200+
package-lock.json
201+
202+
# Since there are multiple workflows, uncomment next line to ignore bower_components
203+
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
204+
#bower_components/
205+
206+
# RIA/Silverlight projects
207+
Generated_Code/
208+
209+
# Backup & report files from converting an old project file
210+
# to a newer Visual Studio version. Backup files are not needed,
211+
# because we have git ;-)
212+
_UpgradeReport_Files/
213+
Backup*/
214+
UpgradeLog*.XML
215+
UpgradeLog*.htm
216+
217+
# SQL Server files
218+
*.mdf
219+
*.ldf
220+
221+
# Business Intelligence projects
222+
*.rdl.data
223+
*.bim.layout
224+
*.bim_*.settings
225+
226+
# Microsoft Fakes
227+
FakesAssemblies/
228+
229+
# GhostDoc plugin setting file
230+
*.GhostDoc.xml
231+
232+
# Node.js Tools for Visual Studio
233+
.ntvs_analysis.dat
234+
235+
# Visual Studio 6 build log
236+
*.plg
237+
238+
# Visual Studio 6 workspace options file
239+
*.opt
240+
241+
# Visual Studio LightSwitch build output
242+
**/*.HTMLClient/GeneratedArtifacts
243+
**/*.DesktopClient/GeneratedArtifacts
244+
**/*.DesktopClient/ModelManifest.xml
245+
**/*.Server/GeneratedArtifacts
246+
**/*.Server/ModelManifest.xml
247+
_Pvt_Extensions
248+
249+
# Paket dependency manager
250+
.paket/paket.exe
251+
paket-files/
252+
253+
# FAKE - F# Make
254+
.fake/
255+
256+
# JetBrains Rider
257+
.idea/
258+
*.sln.iml
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.dockerignore
2+
.git
3+
.gitignore
4+
.vs
5+
.vscode
6+
azds.yaml
7+
charts
8+
Dockerfile
9+
node_modules
10+
secrets.dev.yaml
11+
values.dev.yaml
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
8+
# Runtime data
9+
pids
10+
*.pid
11+
*.seed
12+
*.pid.lock
13+
14+
# Directory for instrumented libs generated by jscoverage/JSCover
15+
lib-cov
16+
17+
# Coverage directory used by tools like istanbul
18+
coverage
19+
20+
# nyc test coverage
21+
.nyc_output
22+
23+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24+
.grunt
25+
26+
# Bower dependency directory (https://bower.io/)
27+
bower_components
28+
29+
# node-waf configuration
30+
.lock-wscript
31+
32+
# Compiled binary addons (https://nodejs.org/api/addons.html)
33+
build/Release
34+
35+
# Dependency directories
36+
node_modules/
37+
jspm_packages/
38+
39+
# TypeScript v1 declaration files
40+
typings/
41+
42+
# Optional npm cache directory
43+
.npm
44+
45+
# Optional eslint cache
46+
.eslintcache
47+
48+
# Optional REPL history
49+
.node_repl_history
50+
51+
# Output of 'npm pack'
52+
*.tgz
53+
54+
# Yarn Integrity file
55+
.yarn-integrity
56+
57+
# dotenv environment variables file
58+
.env
59+
60+
# next.js build output
61+
.next
62+
.next
63+
*.log
64+
html
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM node:lts
2+
ENV PORT 80
3+
EXPOSE 80
4+
5+
WORKDIR /app
6+
COPY package.json .
7+
RUN npm install
8+
COPY . .
9+
10+
CMD ["npm", "start"]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM nginx
2+
EXPOSE 80
3+
COPY html/ /usr/share/nginx/html
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
kind: helm-release
2+
apiVersion: 1.1
3+
build:
4+
context: .
5+
dockerfile: Dockerfile
6+
install:
7+
chart: charts/bikesharingweb
8+
values:
9+
- values.dev.yaml?
10+
- secrets.dev.yaml?
11+
set:
12+
replicaCount: 1
13+
image:
14+
repository: bikesharingweb
15+
tag: $(tag)
16+
pullPolicy: Never
17+
ingress:
18+
annotations:
19+
kubernetes.io/ingress.class: traefik-azds
20+
hosts:
21+
# This expands to [space.s.][rootSpace.]bikesharingweb.<random suffix>.<region>.azds.io
22+
- $(spacePrefix)$(rootSpacePrefix)bikesharingweb$(hostSuffix)
23+
configurations:
24+
develop:
25+
build:
26+
useGitIgnore: true
27+
container:
28+
sync:
29+
- "!**/package.json"
30+
command:
31+
- npm
32+
- run
33+
- dev
34+
iterate:
35+
processesToKill: [node]

0 commit comments

Comments
 (0)