1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-14 07:10:05 +02:00
copilot/README.md

121 lines
4.3 KiB
Markdown
Raw Normal View History

2016-11-04 13:45:49 +02:00
[![CircleCI](https://circleci.com/gh/yldio/joyent-portal.svg?style=shield&circle-token=0bbeaaafc4868c707ca0ed0568f5193a04daddb4)](https://circleci.com/gh/yldio/joyent-portal)
2016-12-09 19:39:42 +02:00
[![License: MPL 2.0](https://img.shields.io/badge/License-MPL%202.0-brightgreen.svg)](https://opensource.org/licenses/MPL-2.0)
2016-11-04 13:36:28 +02:00
2017-04-19 21:26:45 +03:00
# Prototype Triton Portal
2016-10-10 18:44:23 +03:00
2017-01-23 18:28:01 +02:00
This is a prototype project intended to explore some ideas that might contribute to new capabilities and a new user experience for managing applications on [Joyent's Triton](https://www.joyent.com/triton).
**This is not intended for general use and is completely unsupported.**
2017-05-09 19:03:21 +03:00
## Our Principles
2017-05-09 19:07:34 +03:00
We have designed this product with these principles in mind (to be completed).
2017-05-09 19:03:21 +03:00
## Our Design Library
2017-05-09 19:05:02 +03:00
We use inVision craft for our design components, you can downoad this library [here](https://drive.google.com/open?id=0Bw56g3tFwIuWOXNHUDZmRmQ3ZlE) and submit proposed changes to our Sketch wireframes [here](https://drive.google.com/open?id=0B1oWObk56wa5cE5iY2JWNmI2djg).
2017-05-09 19:03:21 +03:00
## Documentation
2017-05-09 19:05:02 +03:00
Our workshop meeting notes are kept in this [Google Drive folder](https://drive.google.com/open?id=0B1oWObk56wa5eklBNGFlWFRFOHM). Our meeting notes are kept in this [Google Drive folder](https://drive.google.com/open?id=0B1oWObk56wa5N1VzZjhZWWpDTTQ).
2017-05-09 19:03:21 +03:00
2017-01-23 18:28:01 +02:00
## Development
If you would like to contribute to the project, the recommended way to setup is to
insure that you have docker installed, and optionally have a triton account and profile
setup using the triton tool.
Currently requires [yarn](https://yarnpkg.com/en/docs/install) for installing dependencies,
as well as `docker` and `docker-compose` are installed correctly, this can be done by
2017-01-27 19:58:10 +02:00
running `make`, make continues without any errors, then you are good to go. [node-triton](https://github.com/joyent/node-triton)
is also needed if deployment to Triton is required.
2017-01-23 18:28:01 +02:00
```
2017-02-17 17:42:52 +02:00
make && make install
2017-01-23 18:28:01 +02:00
```
Then to run each individual component locally (subject to change).
2016-11-03 17:59:49 +02:00
## Setup
2017-01-23 18:28:01 +02:00
```sh
2016-11-03 17:59:49 +02:00
make
```
2016-11-03 17:59:49 +02:00
## Run services
2016-10-25 19:51:20 +03:00
To run the stack locally:
```sh
docker-compose -f local-compose.yml up -d
```
2016-11-03 17:59:49 +02:00
This will run the front-end at [http://127.0.0.1:8000](http://127.0.0.1:8000),
the UI framework at [http://127.0.0.1:8001](http://127.0.0.1:8001),
2016-10-25 19:51:20 +03:00
2016-10-10 18:44:23 +03:00
## Project Management
This project is using [Github Projects](https://www.youtube.com/watch?v=C6MGKHkNtxU) for organisation and development of the Joyent Dashboard.
## Repository Layout
Currently we are using this repository as a monolithic catch-all for all project communication, development and designs.
We will also include multiple PoC's of various bits of functionality from UI's prototypes to API development.
```
.
2016-11-03 17:59:49 +02:00
├── cloudapi-graphql
2017-01-27 19:49:31 +02:00
├── docs
├── frontend
2016-11-03 17:59:49 +02:00
├── nginx
2016-10-24 14:45:20 +03:00
├── ui
└── spikes
2016-10-10 18:44:23 +03:00
```
### cloudapi-graphql
2016-10-10 18:44:23 +03:00
2016-10-10 19:38:58 +03:00
An implementation of the [Joyent CloudAPI](https://apidocs.joyent.com/cloudapi/) in GraphQL.
2017-01-27 19:49:31 +02:00
### Docs
Documentation about the project, mainly focused on information for the technical runnings of this project.
Can be view online at the [documentation website](http://docs.svc.f4b20699-b323-4452-9091-977895896da6.eu-ams-1.triton.zone/)
### frontend
2016-10-25 19:02:05 +03:00
The client side code with a dev-server, this also includes the production server for the meantime, however we are looking at moving towards a deployment of the build artifacts to manta, and another server to host these assets.
2016-11-03 17:59:49 +02:00
### nginx
Nginx will be sitting in-front of the `ui` service, allowing the `ui` to scale out.
2016-10-24 14:45:20 +03:00
### ui
Code for the reusable UI framework.
2016-10-24 14:45:56 +03:00
### spikes
2016-10-25 19:51:20 +03:00
Implementation examples from spikes, this directory is experimental and is likely broken.
2017-02-20 13:18:55 +02:00
### Git LFS
- We are using Git LFS to track large files, such as design files in Sketch.
- Make sure you have this downloaded locally
`brew install git-lfs`
#### Helpful tips
- If there is an error cloning to a new machine, or there is an error cloning in the Circle CI process run `git lfs push origin master --all` from a machine that has it already checked out.
### Sketch Pre Commit
A pre-commit hook has been added to generate a PNG shot of each .sketch file "page".
To use, make sure the following are installed:
- [Sketch Toolbox](http://sketchtoolbox.com/)
- [Sketch Measure Plugin](https://github.com/utom/sketch-measure)
Then add following to your `.git/config`
2017-02-17 17:58:39 +02:00
```
[diff "sketchtool"]
textconv = "sketchtool dump"
cachetextconv = true
2017-02-17 17:58:39 +02:00
```