Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lironhazan/dev-runner
local web/desktop interface as an (multiple) npm scripts runner written in rust
https://github.com/lironhazan/dev-runner
actix-web nextjs npm-scripts postgres rust tauri
Last synced: 17 days ago
JSON representation
local web/desktop interface as an (multiple) npm scripts runner written in rust
- Host: GitHub
- URL: https://github.com/lironhazan/dev-runner
- Owner: LironHazan
- Created: 2022-03-16T20:17:12.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-09-17T04:54:19.000Z (over 2 years ago)
- Last Synced: 2024-11-16T21:08:11.572Z (3 months ago)
- Topics: actix-web, nextjs, npm-scripts, postgres, rust, tauri
- Language: Rust
- Homepage:
- Size: 1.48 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# dev-runner
WIP
![](dev-runner.gif)
Enter a list of <= 4 local node based projects and execute concurrently via the runner ui.
Motivation - none, just for fun..
Disclaimer - Local dev server only, shouldn't be taken to "production", the executed get_commands
are according to the specified selected projects config files (package.json only at the moment), there's no way of running other sys commands nor injecting any scripts...#### Runner UI
Simple React based interface.#### Runner API
Local actix-web server.### Development:
server on watch mode: ``cargo watch -x run``
format by running: `cargo fmt`
lint by running: `cargo clippy`frontend dev-server: ``yarn dev``
Build image + start the container:
```shell
docker build -t rust-dev-runner .docker run -d -p 8080:8080 rust-dev-runner
```##### Postgres db:
Globally install diesel-cli:
``cargo install diesel_cli --no-default-features --features postgres``
Run db from container:
``docker run --rm -P -p 127.0.0.1:5432:5432 -e POSTGRES_PASSWORD="1234" --name pg postgres:alpine
``Create migrations:
1. `` diesel setup ``
2. ``diesel migration generate runner``
3. ``diesel migration run`` will generate schema.rsRunning using a CLI
In .env set IS_CLI_MODE=true and run:
```cargo install --path . && dev-runner --help```