An open API service indexing awesome lists of open source software.

https://github.com/maksymignatiev/petpet_server


https://github.com/maksymignatiev/petpet_server

ansi bun cache hono honojs http http-server petpet sharp-js typescript

Last synced: 19 days ago
JSON representation

Awesome Lists containing this project

README

        

# PetPet HTTP server

## Petpet HTTP server written in TypeScript and Svelte.js, supported with Bun.js, Hono, Sharp.js, and Gifwrap

First of all, you need a Bun runtime to run this project.

To install Bun:
1. Head over to [Bun's official website](https://bun.sh)
2. Follow instruction on how to install per operating system (GNU+Linux/Mac/Windows)

To use the server:

Clone the repo:
```sh
git clone https://github.com/MaksymIgnatiev/petpet_server.git
cd petpet_server
```

1. Install dependencies:
```sh
bun install
```

2. Run the projct:
```sh
bun start
```

2. To see help page:
```sh
# More preferable
bun run help
# or
bun start -h
```

> [!Note]
> To access the root endpoint `/` with regular HTML (home page, sort of), you need to install dependencies inside `svelte-app` directory, and run either in development mode or build the production code.

You can spesify runtime options in `config.toml` file in the root of the project, or with flags. Read [configuration.md](configuration.md) file for more, or see the help page with available flags.
There are different routes available. Documentation can be found in [routes.md](routes.md) file.
Information about cache can be found in [cache.md](cache.md) file.

## License

This project is licensed under the 0BSD License - see the [LICENSE](LICENSE) file for details.