The new (and improved) RCOS website
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
Steven vanZyl ffd6708291 Merge branch 'master' of github.com:rcos/observatory-new 1 天前
.circleci changed circleci docker image 3 个月前
.github Add pull request template 4 个月前
migrations News annoucements 1 个月前
scripts A few fixes 3 个月前
src small conditional change 2 周前
static Workaround for #38 4 个月前
templates News annoucements 1 个月前
.dockerignore Fix CircleCI again 3 个月前
.gitignore Mentors can see meeting codes 4 个月前
CONTRIBUTING.md Update some docs 4 个月前
Cargo.toml Update rust-embed to 5.1.0 3 个月前
DEPLOYING.md Update the README 4 个月前
Dockerfile Fixed Dockerfile 3 个月前
LICENSE Users lists 6 个月前
README.md Update readme with Rustup update 1 天前
Rocket.toml Fix some bugs 4 周前
diesel.toml Diesel setup and basic schemas 6 个月前
logo.svg optimized logo svg 2 个月前

README.md

Observatory-new

CircleCI

RCOS Observatory logo

Rewrite of the RCOS observatory in a way that hopefully makes a bit more sense. Since we have kinda lost track of what number we’re on at this point I am codenaming this version Observatory-New (I think it’s the 5th version though).

This implementation is intended to be simpler than previous incarnations in order to be easier to maintain in the long run.

It renders pages as plain HTML with minimal JavaScript and uses SQLite as the database backend.

If you would like to help out please read CONTRIBUTING.md.

Major Dependencies

Building

Before anything else make sure that you have the development tools for your system. On Ubuntu/Debian you can install these with:

$ sudo apt install build-essential pkg-config

Then you need to install the openssl development headers. How to do this varies by system but on Ubuntu the package is libssl-dev and should be similar on other distros.

Next install Rust with Rustup. Instructions are on the website linked and is fairly straightforward.

Rocket requires Rust Nightly (for now). This can be set for the Observatory-new repository folder specifically by running

rustup override set nightly

in cloned folder. As of Rustup 1.20.0 this will automatically install the additional tools and can be updated with rustup update.

After that it’s as simple as

$ cargo build

And to run do

$ cargo run

Deploying

This is for deploying to a server, not a developer machine

Please read the Deploying instructions for information on how to setup and deploy observatory-new.

Documentation

The code is primarily documented using in-code doc comments. This can be viewed either by browsing the source or in a web browser with.

$ cargo doc --no-deps --document-private-items --all-features --open