Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anfibiacreativa/nv-contoso-hrapp
https://github.com/anfibiacreativa/nv-contoso-hrapp
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/anfibiacreativa/nv-contoso-hrapp
- Owner: anfibiacreativa
- Created: 2022-03-18T19:04:12.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-05T17:27:07.000Z (over 2 years ago)
- Last Synced: 2024-10-06T01:21:48.586Z (3 months ago)
- Language: HTML
- Size: 526 KB
- Stars: 0
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# JavaScript on Azure Learn Path - Module 2 - Deploying a basic app to Azure
This Learn module requires the following Azure resources to deploy correctly:
* Azure App Service
* Azure Cosmos DB with MongoDB API## Requirements
- Node.js LTS
## Local development
- Create Azure resources
- Azure App Service + Cosmos DB for MongoDB API
- [Create resource](https://ms.portal.azure.com/#create/Microsoft.AppServiceWebAppDatabaseV3) in Azure portal
- Create database
- Create collection
- Copy the following to the `.env` file:
- Connection string
- Database name
- Collection name
- Install npm dependencies: `npm install`
- Verify environment variables are set in `.env`
- PORT=8080 - default port for Azure App Service
- MONGODB_URI_CONNECTION_STRING=
- MONGODB_URI_DATABASE_NAME=
- MONGODB_URI_COLLECTION_NAME=
- Start the server: `npm start`
- Access Web App at: `http://127.0.0.1:8080`