chore: updated readme

This commit is contained in:
Blaster4385 2024-02-20 17:37:14 +05:30
parent 4754f4a0c0
commit b8dffc41e6

View file

@ -17,28 +17,20 @@ This is a simple code sharing service and a URL shortener inspired by [katbin](h
- [Go](https://go.dev/) - [Go](https://go.dev/)
- [SQLite](https://www.sqlite.org/) - [SQLite](https://www.sqlite.org/)
## Setup ## Building
### Client
#### Install dependencies
- Setup the required variables in the env file.
- Build the binary
```bash ```bash
bun install make minibin
``` ```
#### Run a development server #### Running
Run the server.
```bash ```bash
bun dev ./minibin
```
### Server
#### Run a development server
```bash
go run .
``` ```
##### Optional flags ##### Optional flags
@ -46,19 +38,6 @@ go run .
- `--port` - The port to run the server on. Default is 8080. - `--port` - The port to run the server on. Default is 8080.
- `--db` - The path to the database file. Default is `./minibin.db`. - `--db` - The path to the database file. Default is `./minibin.db`.
#### Run a production server
Build a binary.
```bash
go build
```
Run the server.
```bash
./minibin
```
## License ## License
This project is licensed under the GNU General Public License v3. See the LICENSE file for details. This project is licensed under the GNU General Public License v3. See the LICENSE file for details.