- Install rust (wow)
- Create database and apply all migrations from
dp-web-core/src/migrations
:
$ touch papers.sqlite
$ cat dp-web-core/src/migrations/*.sql | sqlite3 papers.sqlite
- Set
DATABASE_URL
variable and runcargo build
:
$ DATABASE_URL=sqlite://./papers.sqlite cargo build --release
- Copy
config.example.yml
toconfig.yml
and edit it. - Run
target/release/dp-web-server
.
See target/release/dp-web-server
:
API server for hosting papers
Usage: dp-web-server [OPTIONS] <COMMAND>
Commands:
start Start the web service
create-invite Issue user invite
help Print this message or the help of the given subcommand(s)
Options:
-c, --config <CONFIG> Path which stores the papers [default: config.yml]
-d, --database <DATABASE> Path to sqlite database [default: papers.sqlite]
-h, --help Print help
-V, --version Print version