diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 000000000..eaf129c81 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,24 @@ +pool: + vmImage: 'ubuntu-16.04' +trigger: + - master +steps: + - task: CopyFiles@2 + displayName: 'Copy Files to: $(build.artifactstagingdirectory)/Templates' + inputs: + SourceFolder: deployment + Contents: '*.json' + TargetFolder: '$(build.artifactstagingdirectory)/Templates' + - task: Npm@1 + displayName: 'npm custom' + inputs: + command: custom + verbose: false + customCommand: 'install --production' + - task: ArchiveFiles@2 + displayName: 'Archive $(Build.SourcesDirectory)' + inputs: + rootFolderOrFile: '$(Build.SourcesDirectory)' + includeRootFolder: false + - task: PublishBuildArtifacts@1 + displayName: 'Publish Artifact: drop' diff --git a/README.md b/rdme.md similarity index 81% rename from README.md rename to rdme.md index ba478ab97..47e9da195 100644 --- a/README.md +++ b/rdme.md @@ -1,36 +1,16 @@ +###[![Build Status](https://dev.azure.com/iugamircea0062/new%20test/_apis/build/status/mirceaiuga.ContosoAir?branchName=master)](https://dev.azure.com/iugamircea0062/new%20test/_build/latest?definitionId=2&branchName=master) +ddddsdddddsdsddddddddddd -# Microsoft.Github CI Demo - -Demo website application for Contoso Air. -Runs a nodejs server (Express v4.16) that stores customer booked flights in a CosmosDb database. - -## Requirements - -* Node v8.9.4 or later -* Azure CosmosDb - -## Local Environment Setup - -This project uses ES6, and has been tested with nodejs v8.9.4 -There is almost no front-end logic. Still, the application uses webpack to compile sass styles and bundle third parties js files. If you want to modify any front logic or style run `npm run local:build`. - -In order to launch a local server on port 3000 (can be modified with environment variable PORT) run: + server on port 3000 (can be modified with environment variable PORT) run: ```bash npm install SET %COSMOS_DB_NAME%= SET %COSMOS_DB_AUTH_KEY%= npm start -``` - This will run locally the server and attach to the CosmosDb Endpoint using mongodb connection string. - -## Azure Manual Deployment - -In order to create the Azure deploy there is an ARM template located at deployment folder. - ARM template parameter | Usage | e.g. --- | --- | --- p_environment | set an environment suffix | `dev`