-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
35 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# [`run.sh`](../run.sh) | ||
|
||
The [`run.sh`](../run.sh) contains all the commands you would ever want to run. | ||
|
||
You can easily call a function defined in the [`run.sh`](../run.sh) by calling | ||
|
||
```bash | ||
sh run.sh <cmd> | ||
``` | ||
|
||
`<cmd>` can be any one of these useful commands (I noted 👉 as the most useful/important in my opinion) | ||
|
||
| `<cmd>` | what it does | | ||
|---|---| | ||
| `start` | 👉 Starts/runs the docker container | | ||
| `stop` | 👉 Stops the docker container | | ||
| `restart` | Stops, then Starts the docker container | | ||
| `hard_restart` | 👉 Builds the docker container from scratch and starts it, do this if you're having errors | | ||
| `gen_api` | 👉 Creates/Generates the frontend api code based on the backend endpoints | | ||
| `reload_init_sql` | Reload/change the schema in [`init.sql`](../backend/init.sql)| | ||
| `sql_dump` | Dumps the current db contents and schema into [`backups/`](../backend/data/backups/).| | ||
| `psql` | Opens up a direct terminal into the database to execute SQL commands live | | ||
| `test` | Runs all unit tests | | ||
| `test_backend` | Runs only backend unit tests | | ||
| `test_frontend` | Runs only frontend unit tests | | ||
|
||
There are actually many more functions, so please check out [`run.sh`](../run.sh). | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters