A cli to setup, and generate new components for, a thruster app.
> cargo install --force
This will create a new project using: - thruster - Postgres - Diesel.rs - Relevant docker files
```
thruster-cli init ProjectName ```
Note: This installs the project pointing towards the default database of
DATABASE_URL=postgres://postgres@localhost/ProjectName
This can be updated at any time in the generated .env
file.
```
thruster-cli component User thruster-cli migrate ```
Running migrate
is important because it generates schema populated from the database.
The whole app is initialized using docker and docker-compose, so you can simply run: ```
docker-compose up ```
If you prefer to run outside of a container, you can run ```
cargo run ```
Just like a normal rust project. Make sure you have postgres running as well so your server has a DB!