The Monolith / Fractal pattern library is part of NewCity’s Foundation First approach. It is a front-end framework designed to bootstrap new projects. It is based on Fractal v1.
You will need to know how to use docker and git. Likewise, you will need docker and git.
To start a new project you should copy this repository as it currently exists.
To get started, type
make dev in a terminal window. This will fire up the Bluestone docker container and run it through http://localhost:3000/. To access the Browser-sync control panel, visit http://localhost:3002.
We use make instead of docker-compose directly because we have a different compose file for development and deployment and the command line can get a little hairy.
make devwill start the docker container running in detached mode. (So will
make logswill attach to the docker container’s logs. If you get a prompt back from running this it means the container has died – usually because of an error somewhere in the build stack.
make downwill stop the container.
make demowill start the container, run the build script used at deployment, then shut down the container.
make trackwill start the container in detached mode, then start showing the logs.
make restartwill shut down the container as though you had used
make downand then start up the container as though you had used