Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ja573 committed Feb 26, 2024
1 parent 1104ab1 commit 81e630e
Showing 1 changed file with 9 additions and 20 deletions.
29 changes: 9 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ make docker-dev
or
```sh
docker-compose -f docker-compose.dev.yml build
docker-compose -f docker-compose.dev.yml up
docker-compose -f docker-compose.dev.yml up
```

### Running with docker (production)
Expand Down Expand Up @@ -78,7 +78,7 @@ cp .env.example .env # Edit the credentials in .env
psql
psql -U postgres
CREATE ROLE thoth SUPERUSER LOGIN PASSWORD 'thoth';
CREATE DATABASE thoth WITH OWNER thoth;
CREATE DATABASE thoth WITH OWNER thoth;
```

Exit the psql command line with:
Expand All @@ -100,34 +100,23 @@ SECRET_KEY=we_like_s%_books_255
# Logging level
RUST_LOG=info
```
Proceed to install **Wasm**
```
cargo install wasm-pack
```
Install **rollup**:

```
sudo npm install --global rollup
```
#### GraphQL API

Export the ENV variables, **THOTH_GRAPHQL_API** and **THOTH_EXPORT_API**:
```
export THOTH_GRAPHQL_API=http://localhost:8000
export THOTH_EXPORT_API=http://localhost:8181
```sh
cargo run init
```

#### API
#### Export API

```sh
cargo run init
cargo run start export-api
```

#### Wasm GUI
#### GUI

```sh
wasm-pack build thoth-app/ --target web \
&& rollup thoth-app/main.js --format iife --file thoth-app/pkg/thoth_app.js \
&& cargo run start app
cargo run start app
```

### Building with docker
Expand Down

0 comments on commit 81e630e

Please sign in to comment.