Standalone AO API server written in TypeScript. Use @autonomousorganization/ao-cli to install and run as a service.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
# AO API Server (ao-server)
|
|
|
|
|
|
|
|
An AO server, or AO API server keeps track of the history of a single community. One or more users can connect to the same AO server and communicate.
|
|
|
|
|
|
|
|
# Installation
|
|
|
|
|
|
|
|
Use [ao-cli](https://www.npmjs.com/package/@autonomousorganization/ao-cli) to install.
|
|
|
|
|
|
|
|
If installing manually:
|
|
|
|
|
|
|
|
```
|
|
|
|
cd ~
|
|
|
|
git clone http://git.coalitionofinvisiblecolleges.org:3009/autonomousorganization/ao-server.git
|
|
|
|
cd ao-server
|
|
|
|
npm i --force
|
|
|
|
```
|
|
|
|
|
|
|
|
(`--force` is necessary temporarily because we are using a development version of TypeScript to make compiling simpler using a new feature.)
|
|
|
|
|
|
|
|
# Starting the server
|
|
|
|
|
|
|
|
To start the server running, do:
|
|
|
|
|
|
|
|
`npm run serve`
|
|
|
|
|
|
|
|
# Installing as a service
|
|
|
|
|
|
|
|
To run the server in the background or on system startup, install it as a systemd service.
|
|
|
|
|
|
|
|
Use `ao-cli` to do this; it has have an easy menu option built in for this (very soon).
|