Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Added Dockerfile and docker-compose file #142

Open
wants to merge 140 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
140 commits
Select commit Hold shift + click to select a range
d7905d7
initial commit
May 9, 2017
9a6ccfb
README Title Update
May 9, 2017
502ac88
update README
May 9, 2017
a9664be
removed yarn section
May 9, 2017
c2d938a
added nodemon as dev dependency
May 15, 2017
9c3e0df
Update references from bowdenk7 repo to Microsoft repo
mrtnjln May 15, 2017
f943c5e
Update README.md
May 19, 2017
888d8a2
Update README.md
May 19, 2017
3df842e
Merge branch 'master' into master
May 19, 2017
8c35e5d
Merge pull request #2 from julienmartin/master
May 19, 2017
2eae2fd
added package-lock for npm5 and fixed bug with flash messages
Jun 5, 2017
c9b6765
Merge pull request #6 from Microsoft/bugFix
Jun 5, 2017
4608459
Update README.md
Jun 5, 2017
aff88f2
Added `build` `preLaunchTask` for debug configuration
Deilan Jun 5, 2017
54c291b
Merge pull request #7 from Deilan/vscode-task-build
Jun 5, 2017
d423251
Removed duplication in npm scripts `serve` and `watch`
Deilan Jun 5, 2017
a7ef8d5
Removed duplicate README section
Jul 11, 2017
0cec294
fix typo
backmeupplz Jul 13, 2017
61d4512
Merge pull request #8 from Deilan/npm-run-server-dup
Jul 18, 2017
d6d880c
fix: copying issues
kevguy Jul 19, 2017
5472454
fix: fix for tslint
kevguy Jul 19, 2017
76c4593
fit error TS2559: Type '4' has no properties in common with type 'Mi…
cobola Jul 19, 2017
bb5281e
Merge pull request #26 from cobola/master
Jul 20, 2017
5c796ca
port changes from PR #11
Jul 20, 2017
9601c65
Merge pull request #30 from Microsoft/testing
Jul 20, 2017
6d9fee1
Merge pull request #24 from kevguy/fix-copy
Jul 20, 2017
38be103
Merge pull request #22 from backmeupplz/patch-1
Jul 20, 2017
a50b2a9
Added survey links that I forgot ><
Jul 20, 2017
c80e236
fix: fix lint warnings for test files
kevguy Jul 23, 2017
da5b277
Bump tasks.json version from 0.10 to 2.00. Add default build task.
fpoumian Jul 23, 2017
32f4302
Merge pull request #32 from fpoumian/fix-vscode-tasks-version
Jul 25, 2017
3f1c52a
updating package-lock
Jul 20, 2017
684e4a3
looks like new version of npm adds a blank line after each npm instal…
Jul 20, 2017
9592b03
updated specific .d.ts files to point to definitely typed file. Also …
Jul 25, 2017
9710a63
update to node 8 on travis
Jul 25, 2017
ac3c52c
removed yarn as npm 5 makes it mostly unneccesary and it's causing so…
Jul 25, 2017
0026e88
Merge pull request #33 from Microsoft/removeYarn
Jul 25, 2017
08e570e
add attach debug configuration
Jul 27, 2017
d559bac
fix: word
Jul 27, 2017
49bb4c1
.
Jul 27, 2017
f9eae65
Merge pull request #34 from thanhtdt/master
Jul 31, 2017
c8dbb29
Update build task
lostintangent Jul 31, 2017
5cd9602
Merge pull request #35 from lostintangent/master
Jul 31, 2017
ed149eb
Merge pull request #31 from kevguy/test-fix
Aug 1, 2017
0acc845
change tests to not always pass
dmt Aug 9, 2017
8946ae7
separate server binding to port from other app config
dmt Aug 19, 2017
9d8741e
might as well also add the change for issue #41
dmt Aug 19, 2017
534cd4a
Update README.md
nmchaves Oct 8, 2017
d151ad7
feat(*): update several dependencies
alan-agius4 Oct 29, 2017
4066839
Removed extra "s" in sourceMap compilerOptions
sebastianseilund Nov 18, 2017
0dddad0
Merge pull request #56 from sebastianseilund/sourcemaps-typo
Dec 11, 2017
9c8f67f
Merge pull request #50 from nmchaves/patch-1
Dec 11, 2017
aa75060
Merge pull request #53 from alan-agius4/feature/bump=deps
Dec 12, 2017
7631ad5
Update README.md
nmchaves Oct 8, 2017
f80b88c
feat(*): update several dependencies
alan-agius4 Oct 29, 2017
365b4b7
Removed extra "s" in sourceMap compilerOptions
sebastianseilund Nov 18, 2017
58eb768
change tests to not always pass
dmt Aug 9, 2017
b3eddf3
separate server binding to port from other app config
dmt Aug 19, 2017
3f1c47e
fix conflicts
Dec 14, 2017
98d1641
fix up tests
Dec 14, 2017
ca7c9e5
Merge pull request #38 from dmt/master
Dec 14, 2017
a040f51
update repo field
Dec 14, 2017
7d8b4d1
feat: move jest config to external file
alan-agius4 Dec 15, 2017
5fbf79d
docs: update `jest` section
alan-agius4 Dec 16, 2017
41b9d2d
Support all-typescript tooling with ts-node
peterblazejewicz Dec 16, 2017
67baced
Add VSCode CosmosDB extension recommendation
peterblazejewicz Dec 16, 2017
e8ecc30
made some changes to mongo connection
Dec 19, 2017
40bdb4e
Merge pull request #63 from Microsoft/connectionRework
Dec 19, 2017
fb9a740
add the line to compile dist folder
thatkookooguy Jan 2, 2018
960bacc
Merge pull request #58 from alan-agius4/feature/jest-conf
Jan 3, 2018
3daedf5
Merge pull request #66 from Thatkookooguy/patch-1
Jan 3, 2018
7642c20
update year in footer
Jan 3, 2018
840936a
Merge pull request #61 from peterblazejewicz/feat/cosmodb
Jan 3, 2018
0e36d83
Merge branch 'master' into feat/ts-node
Jan 3, 2018
d56722c
Merge branch 'master' into feat/ts-node
Jan 3, 2018
1436c8f
Merge pull request #60 from peterblazejewicz/feat/ts-node
Jan 3, 2018
f7211d8
updated debug instructions to use only attach config
Jan 3, 2018
0e3e30e
feat: update several dependencies and devDependencies (#59)
alan-agius4 Jan 3, 2018
d1a2c95
changed description of npm start
Jan 3, 2018
0513c92
coverage/chai support and some unit tests
irenexychen Jan 3, 2018
f52c194
Merge pull request #68 from dorongrinstein/master
Jan 3, 2018
f2fdabf
Update view markups for HTML5
peterblazejewicz Jan 4, 2018
1a362f0
Add memo about VSCode suggested extensions to README
peterblazejewicz Jan 4, 2018
5be3f07
Replace Lusca definition file with @types/lusca
peterblazejewicz Jan 4, 2018
3a4f043
Replace passport-local definition file with @types/passport-local
peterblazejewicz Jan 5, 2018
2e54055
Update Bootstrap from 3.3.6 to 3.3.7
peterblazejewicz Jan 5, 2018
d412ef7
Add missing alt attr to non-decorative images
peterblazejewicz Jan 5, 2018
cf83a75
Merge pull request #69 from peterblazejewicz/update/layout
Jan 9, 2018
9e73c01
Merge pull request #70 from peterblazejewicz/update/readme
Jan 9, 2018
545e048
Merge pull request #71 from peterblazejewicz/types/lusca
Jan 9, 2018
0081ef4
Merge pull request #73 from peterblazejewicz/types/passport-local
Jan 9, 2018
5d5c947
Merge pull request #74 from peterblazejewicz/update/bootstrap
Jan 9, 2018
6ebb38a
Merge pull request #75 from peterblazejewicz/fix/alts-attr
Jan 9, 2018
5240093
Update README.md
Jan 9, 2018
b08cec2
Update README.md with MongoDB config
tioback Feb 1, 2018
17980b2
Merge pull request #79 from tioback/tioback-monbodb-config
Feb 10, 2018
b1aefbb
Update source and dependency to work with TypeScript 2.7. Closes #81
peterblazejewicz Feb 20, 2018
dc5a23f
Merge pull request #85 from peterblazejewicz/feat/81
Feb 21, 2018
3680618
Do not store output from coverage tests in repo
peterblazejewicz Feb 21, 2018
d5d41cd
ignoring coverage reports
Feb 21, 2018
d0403de
Update ShellJS version
peterblazejewicz Feb 22, 2018
d15b403
Merge pull request #86 from peterblazejewicz/feat/gitignore
Feb 27, 2018
fc4c2b2
Merge pull request #88 from peterblazejewicz/feat/update-shelljs
Feb 27, 2018
c31ac30
ignoring coverage reports
Feb 21, 2018
3a76607
WIP - add azure instructions
Feb 27, 2018
50a966d
found a better config setup I like
Jan 5, 2018
e3acde1
replaced logging with Winston
Jan 5, 2018
31818ba
fixed github button
Feb 27, 2018
39e6d09
finished README updates for zip deploying to azure app service
Feb 28, 2018
7aad826
removed white space
Feb 28, 2018
0a5b1ba
updated dependency table in README
Feb 28, 2018
6c27740
added image
Feb 28, 2018
101235a
additional README updates
Feb 28, 2018
3b76dc4
more readme updates
Feb 28, 2018
56993dd
fixed some imports
Mar 12, 2018
4d90599
Merge pull request #92 from Microsoft/addAzure
Mar 12, 2018
476b74f
Typo in ts-jest name
davojan Mar 14, 2018
31e140e
Merge pull request #95 from davojan/patch-1
Mar 16, 2018
7ef664c
Merge branch 'master' of https://github.com/Microsoft/TypeScript-Node…
Mar 19, 2018
d6e5409
add google analytics to example site
Mar 19, 2018
e2a7afa
update comment
Mar 19, 2018
52a4f6a
use import instead of require in ts file
Meir017 Mar 21, 2018
431f276
Merge pull request #99 from Meir017/patch-1
Mar 22, 2018
dcc5965
use same signature for model function & ts type
Meir017 Mar 22, 2018
25efc37
Update jQuery content version. Fixes #103
peterblazejewicz Mar 27, 2018
370fbf6
Add missing BS3 glyphicon fonts. Fixes #98
peterblazejewicz Mar 27, 2018
8009911
Merge pull request #104 from peterblazejewicz/fix/103
Apr 4, 2018
685cad2
Merge pull request #105 from peterblazejewicz/fix/98
Apr 4, 2018
6b97068
Merge pull request #100 from Meir017/patch-2
Apr 4, 2018
8b7097d
Add `watch-test` Script
swseverance Apr 11, 2018
a7c66cf
Merge pull request #109 from swseverance/watch-test-command
Apr 17, 2018
72aebf4
Syntax highlighting
theel0ja Apr 19, 2018
6700280
Merge pull request #111 from theel0ja/patch-1
May 2, 2018
5fa12eb
Fix Error: Unknown authentication strategy "local"
ToryTran May 30, 2018
91725ad
Remove duplicate entry in .gitignore
antamb Jul 6, 2018
6206f64
Merge pull request #120 from ToryTran/master
Jul 16, 2018
25ef6a0
Merge pull request #123 from antamb/master
Jul 16, 2018
c8a2c2d
Fix typo in README.md
sajadtorkamani Jul 20, 2018
4ea67b5
Merge pull request #128 from sajadtorkamani/doc-fix/typo
DanielRosenwasser Aug 10, 2018
ad01779
Added Dockerfile and docker-compose file
shamin Oct 4, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
npm-debug.log
16 changes: 16 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

# Note we depend on NODE_ENV being set to dictate which of the env variables below get loaded at runtime.
# See README for more details.

# Get this from https://mlab.com/home after you've logged in and created a database
MONGODB_URI=mongodb://<mlab_user>:<mlab_password>@<mlab_connection_url>

# This is standard running mongodb locally
MONGODB_URI_LOCAL=mongodb://localhost:27017

# Put lots of randomness in these
SESSION_SECRET=ashdfjhasdlkjfhalksdjhflak

# Facebook keys - register your app and get yours here: https://developers.facebook.com/
FACEBOOK_ID=754220301289665
FACEBOOK_SECRET=41860e58c256a3d7ad8267d3c1939a4a
271 changes: 29 additions & 242 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,252 +1,39 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates

# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs

# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/

# Visual Studio 2015 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

# NUNIT
*.VisualState.xml
TestResult.xml

# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c

# DNX
project.lock.json
artifacts/

*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
lib-cov
*.seed
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc

# Chutzpah Test files
_Chutzpah*

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile
*.VC.db
*.VC.VC.opendb

# Visual Studio profiler
*.psess
*.vsp
*.vspx
*.sap

# TFS 2012 Local Workspace
$tf/

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user

# JustCode is a .NET coding add-in
.JustCode

# TeamCity is a build add-in
_TeamCity*

# DotCover is a Code Coverage Tool
*.dotCover

# NCrunch
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*

# MightyMoose
*.mm.*
AutoTest.Net/

# Web workbench (sass)
.sass-cache/

# Installshield output folder
[Ee]xpress/

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish/

# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# TODO: Comment the next line if you want to checkin your web deploy settings
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj

# Microsoft Azure Web App publish settings. Comment the next line if you want to
# checkin your Azure Web App publish settings, but sensitive information contained
# in these scripts will be unencrypted
PublishScripts/

# NuGet Packages
*.nupkg
# The packages folder can be ignored because of Package Restore
**/packages/*
# except build/, which is used as an MSBuild target.
!**/packages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/packages/repositories.config
# NuGet v3's project.json files produces more ignoreable files
*.nuget.props
*.nuget.targets

# Microsoft Azure Build Output
csx/
*.build.csdef

# Microsoft Azure Emulator
ecf/
rcf/

# Windows Store app package directories and files
AppPackages/
BundleArtifacts/
Package.StoreAssociation.xml
_pkginfo.txt

# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!*.[Cc]ache/

# Others
ClientBin/
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.pfx
*.publishsettings
node_modules/
orleans.codegen.cs

# Since there are multiple workflows, uncomment next line to ignore bower_components
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
#bower_components/

# RIA/Silverlight projects
Generated_Code/

# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm

# SQL Server files
*.mdf
*.ldf

# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings
*.csv
*.dat
*.out
*.pid
*.gz
*.swp

# Microsoft Fakes
FakesAssemblies/
pids
logs
results
tmp

# GhostDoc plugin setting file
*.GhostDoc.xml
# Build
public/css/main.css

# Node.js Tools for Visual Studio
.ntvs_analysis.dat
# Coverage reports
coverage

# Visual Studio 6 build log
*.plg
# API keys and secrets
.env

# Visual Studio 6 workspace options file
*.opt
# Dependency directory
node_modules
bower_components

# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions
# Editors
.idea
*.iml

# Paket dependency manager
.paket/paket.exe
paket-files/
# OS metadata
.DS_Store
Thumbs.db

# FAKE - F# Make
.fake/
# Ignore built ts files
dist/**/*

# JetBrains Rider
.idea/
*.sln.iml
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

{
"language": "node_js",
"node_js": "8",
"services": [
"mongodb"
],
"script": [
"npm run build",
"npm run test"
]
}
7 changes: 7 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"recommendations": [
"eg2.tslint",
"ms-azuretools.vscode-cosmosdb",
"streetsidesoftware.code-spell-checker"
]
}
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible Node.js debug attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "attach",
"name": "Attach by Process ID",
"processId": "${command:PickProcess}",
"protocol": "inspector"
}
]
}
18 changes: 18 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Place your settings in this file to overwrite default and user settings.
{
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/dist": true,
"**/coverge": true
},
"typescript.referencesCodeLens.enabled": true,
"tslint.ignoreDefinitionFiles": false,
"tslint.autoFixOnSave": true,
"tslint.exclude": "**/node_modules/**/*",
"cSpell.words": [
"csrf",
"definitelytyped",
"promisified"
]
}
15 changes: 15 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "build",
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:latest

WORKDIR /usr/src/app

COPY package*.json ./

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably LN9 will copy package*.json as well.


RUN npm install
Copy link

@yzevm yzevm Aug 15, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably its better to use RUN npm ci command?
P.s. thanks for dockerize repo, so helpful


COPY . .

EXPOSE 3000
RUN [ "npm", "run", "build" ]
CMD [ "npm", "start" ]
Loading