https://github.com/johnpapa/one-with-angular
https://github.com/johnpapa/one-with-angular
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/johnpapa/one-with-angular
- Owner: johnpapa
- Created: 2017-04-02T17:51:42.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-18T14:26:31.000Z (about 8 years ago)
- Last Synced: 2025-07-12T15:36:37.849Z (3 months ago)
- Language: TypeScript
- Size: 1.46 MB
- Stars: 61
- Watchers: 6
- Forks: 48
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# One With Angular
Find the [Azure Functions Serverless API for this app located here](https://github.com/johnpapa/one-with-angular-api).
```bash
git clone git@github.com:johnpapa/one-with-angular.git one
cd one
npm install
```Discard the `.git` folder
```bash
rm -rf .git # OS/X (bash)
rd .git /S/Q # windows
```## Docker
- Install and run [Docker](https://www.docker.com/community-edition)
### Docker Compose
- Create the Docker image and run it locally
```bash
docker-compose up -d --build
open http://localhost:4200
```### Docker Compose with Debugging
- Create the Docker image and run it locally
```bash
docker-compose -f docker-compose.debug.yml up -d --build
open http://localhost:4200
```Open VS Code, launch the `Docker: Attach to Node` debugging profile
### Docker Run
```bash
dockerImage=one-with-angular
port=4200docker build -t $dockerImage .
docker run -d -p $port:3000 $dockerImage
```## Development server
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
## Build
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build.