Contains client stuff. This includes "microservice" server stuff, because they're really just headless clients.
Contains the things necessary to store documents in the database.
- Get Docker and Docker Compose.
cp .env.sample .env
.
sudo dev/run
- Browse to
localhost:3001/api/migrations
, copy the last migration title into the last box and hit "up". - Browse to
localhost:3000
.
sudo dev/test
sudo dev/force-rebuild
orsudo dev/clean
$host/api/migrations
. They are never run automatically.
Deploy everything like
server staging everything
.
Alternatively, instead of everything
you can write
- `server staging [deploy|rollback] [client|api]
to deploy or roll-back either the client or the api server.
At the moment the process is,
- Buy a server,
- Configure DNS if you like,
- Run
server $ip-address setup
and follow the instructions. This should install docker and git on the host, authenticate with the docker registry and clone our git repo. - Init a docker swarm or join one. (??)
- Update environment files in the
machines
directory if setting up a new swarm.
This is a bit crap at the moment :-)
dev/microservice filename
where filename
is a userInfo
response with the document you want inside it. The server runs on port 5010.
To stop it, run
dev/microservice stop