https://github.com/guillotinaweb/grange-schematic
Angular schematics to setup Grange in an existing Angular project
https://github.com/guillotinaweb/grange-schematic
Last synced: 7 months ago
JSON representation
Angular schematics to setup Grange in an existing Angular project
- Host: GitHub
- URL: https://github.com/guillotinaweb/grange-schematic
- Owner: guillotinaweb
- Created: 2020-05-08T18:03:40.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-20T13:20:55.000Z (over 5 years ago)
- Last Synced: 2025-02-16T03:26:18.586Z (8 months ago)
- Language: TypeScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Getting started with Grange
This Angular schematics allows to setup Grange in an existing Angular project.
It installs all the needed NPM dependencies, updates `angular.json`, and adds extra files for Pastanaga styling and Guillotina backend.
### Usage
Go in an existing Angular project or create a new one:
```bash
ng new my-app
```
Then run the schematic:
```bash
npm install @guillotinaweb/grange-schematic
ng add @guillotinaweb/grange-schematic
```
### Running Guillotina locally
For development purpose, it might be handy to run Guillotina locally. This schematic provides a simple Guillotina configuration.
Note: it requires Docker.
```bash
npm run guillotina
```
To create a new container for an app (named `myapp` in this example):
```bash
curl -XPOST --user root:root http://127.0.0.1:8081/db -d '{
"@type": "Container",
"id": "myapp"
}'
```