Split issues report on status
Working on statistics
Update README.md
Main repo: https://git.sr.ht/~tsumanu/jirs
Demo: https://jirs.ita-prog.pl
./config
directoryrusoto
# web.toml
concurrency = 2
port = "5000"
bind = "0.0.0.0"
ssl = false
tmp_dir = "./tmp"
[s3]
access_key_id = ""
secret_access_key = ""
bucket = ""
region_name = "eu-central-1"
[filesystem]
store_path = ""
client_path = "/img"
If default feature "local-storage"
is on your uploaded files will be stored on your machine.
This requires additional configuration.
[filesystem]
store_path = "/var/jirs/uploads"
client_path = "/img"
store_path
is your local machine path. Files will be saved there. This can be relative to CWD
path or absolute path.client_path
is web pathBoth must be set and non-empty
If default feature "aws-s3"
is on your uploaded files will be send to AWS S3 service.
This requires additional configuration.
[s3]
access_key_id = ""
secret_access_key = ""
bucket = ""
region_name = "eu-central-1"
# db.toml
concurrency = 2
database_url = "postgres://postgres@localhost:5432/jirs"
You can send e-mail only via service which will handle this. This application was build using sendgrid.
# mail.toml
concurrency = 2
user = "apikey"
pass = "YOUR-TOKEN"
host = "smtp.sendgrid.net"
from = "contact@jirs.pl"
Within jirs
directory place .env
file with following content
DATABASE_URL=postgres://postgres@localhost:5432/jirs
RUST_LOG=actix_web=info,diesel=info
JIRS_CLIENT_PORT=7000
JIRS_CLIENT_BIND=0.0.0.0
JIRS_SERVER_PORT=5000
JIRS_SERVER_BIND=0.0.0.0
NODE_ENV=development
DEBUG=true
Client and Server bind/port must be provided. Client will be build using those variables and will send requests only using this address.
DATABASE_URL
is required only to setup database. Runtime will use db.toml
.
Requirements:
cargo install diesel_cli --no-default-features --features postgres
export DATABASE_URL=postgres://postgres@localhost/jirs
diesel setup
diesel migration run
cargo run --bin jirs_server
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
cd jirs_client
./web/scripts/prod.sh
sudo ln -s ./jirs.nginx /etc/nginx/sites-enabled/
sudo nginx -s reload
https://todo.sr.ht/~tsumanu/JIRS
Custom element glued with WASM
file-path
have connected on attr changed callback and will change displayed pathlang
does not have callback and it's used only on connectedCallback
<jirs-code-view lang="Rust" file-path="/some/path.rs">
struct Foo {
}
</jirs-code-view>