Git Product home page Git Product logo

grout-blueprint's Introduction

Ashlar Blueprint

A reference implementation for using Ashlar to build flexible-schema web applications.

Installation

Requirements

  • Docker >= 1.13.0 (must be compatible with Compose file v3 syntax)
  • docker-compose >= 1.10.0 (must be compatible with Compose file v3 syntax)

Set up

Copy an environment file for the Ashlar instance and the frontend (you can change some variables if you know they won't suit your setup, but the example file should work fine for local development):

cp ./ashlar/.env.example ./ashlar/.env
cp ./frontend/.env.example ./frontend/.env

Run the update script to make sure your containers are up to date:

./scripts/update

This script will also load some sample data into Ashlar that you can play around with.

Developing

Run development servers

Run development servers with the server script:

./scripts/server

The Ashlar instance will be accessible on localhost:8000, the schema editor will be accessible on localhost:9000, and the frontend for the app will be accessible on localhost:4567. All three should reload in realtime as you edit files.

You can choose to run only the services you need by passing the server script an optional argument:

# Run only the Ashlar instance
./scripts/server ashlar

# Run only the schema editor
./scripts/server editor

# Run only the frontend
./scripts/server frontend

You can also run custom commands in the containers using the server script:

# Run a custom command in the Ashlar instance (python entrypoint)
./scripts/server ashlar manage.py runserver

# Run a custom command in the schema editor (grunt entrypoint)
./scripts/server editor watch

Note that the initial migrations for the Ashlar server automatically create an admin user with the username admin and the password admin. You can use these credentials to log into the schema editor and the API admin portal.

grout-blueprint's People

Contributors

jeancochrane avatar ddohler avatar

Watchers

Justin Walgran avatar Scott Lederer avatar  avatar Francesco Bartoli avatar Chip Hitchens avatar James Cloos avatar Kathryn Killebrew avatar Vijay Lulla avatar Jeff Frankl avatar Andy Fink-Miller avatar Matt Williams avatar Taylor avatar Peter Caisse avatar Brett Tackaberry avatar Azavea CI avatar Shreshth Khilani avatar Alex Lash avatar James Santucci avatar  avatar  avatar Aaron Su avatar Luke McKinstry avatar  avatar  avatar

Forkers

jeancochrane

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.