https://github.com/johnpapa/angular-cosmosdb
Cosmos DB, Express.js, Angular, and Node.js app
https://github.com/johnpapa/angular-cosmosdb
Last synced: about 1 month ago
JSON representation
Cosmos DB, Express.js, Angular, and Node.js app
- Host: GitHub
- URL: https://github.com/johnpapa/angular-cosmosdb
- Owner: johnpapa
- Created: 2017-07-15T17:28:03.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-03-03T10:00:55.000Z (over 2 years ago)
- Last Synced: 2024-12-28T08:02:42.234Z (10 months ago)
- Language: TypeScript
- Homepage:
- Size: 1.06 MB
- Stars: 81
- Watchers: 7
- Forks: 54
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Angular Cosmos DB
by [John Papa](http://twitter.com/john_papa)
You can [watch me build the app as part of my series here](https://johnpapa.net/angular-cosmosdb-1/)
You can [view all videos together here](/VIDEOS.md)
[Learn more about developing Node.js apps with Azure's cloud services here](https://docs.microsoft.com/nodejs/azure?WT.mc_id=angularcosmosdb-github-jopapa)
## Docker
Create the Docker image and run it locally
```bash
dockerImage=angular-cosmosdb
docker build -t $dockerImage .
docker run -d -p 3000:80 $dockerImage
```## Requirements
1. Install the Angular CLI
```bash
npm install -g @angular/cli
```1. Install the [Azure CLI](https://docs.microsoft.com/cli/azure/install-azure-cli?WT.mc_id=angularcosmosdb-github-jopapa)
## Getting Started
1. Clone this repository
```bash
git clone https://github.com/johnpapa/angular-cosmosdb.git
cd angular-cosmosdb
```1. Install the npm packages
```bash
npm i
```1. Configure Cosmos DB server settings
Rename the `example-environment.js` file to `environment.js` in the `server/env/` folder and update it with your Cosmos DB settings. Replace the database name key, and port with your specific configuration.
```javascript
// server/env/environment.js
const cosmosPort = 1234; // replace with your port
const dbName = 'your-cosmos-db-name-goes-here';
const key = 'your-key-goes-here';module.exports = {
cosmosPort,
dbName,
key
};
```## Running the app
1. Build the Angular app
```bash
ng build
```1. Launch the server
```bash
node src/server/index.js
```1. Open the browser to http://localhost:3000
## Problems or Suggestions
[Open an issue here](https://github.com/johnpapa/angular-cosmos/issues)