Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/kevinanielsen/go-fast-cdn

A fast and easy-to-use CDN, built with Go.
https://github.com/kevinanielsen/go-fast-cdn

cdn gin gin-gonic gin-gorm go go-app go-cdn golang gorm gorm-orm

Last synced: 4 days ago
JSON representation

A fast and easy-to-use CDN, built with Go.

Awesome Lists containing this project

README

        



Go-Fast CDN - Fast and simple Open Source CDN







# Go-Fast CDN

_"The PocketBase of CDNs" - Me_

### A fast and easy-to-use CDN, built with Go.

Utilizing an SQLite database with GORM and the Gin web framework. UI built with [Vite](https://vite.js/) + [React](https://react.dev/) and [wouter](https://github.com/molefrog/wouter).

## How to use

See our documentation at [kevinanielsen.github.io/go-fast-cdn/](https://kevinanielsen.github.io/go-fast-cdn/)

## Development

### Clone the Repository

`git clone [email protected]:kevinanielsen/go-fast-cdn`
or `git clone https://github.com:kevinanielsen/go-fast-cdn`

### Add env variables

This project uses [dotenv](https://vault.dotenv.org/) and I recommend that you do the same.

Read more about the usage on their page.


If you do not wish to use this, you can just rename `.example.env` to `.env` and fill in the fields.

### Building the binary

1. Run `make prep`
2. Run `make clean`
3. Run `make test`
4. Run `make build`

Your binary should now be tested, built, and you can run it with `bin/go-fast-cdn-linux` or `bin/go-fast-cdn-windows` or `bin/go-fast-cdn-darwin`

### Quick start with Docker

`git clone [email protected]:kevinanielsen/go-fast-cdn`
or `git clone https://github.com:kevinanielsen/go-fast-cdn`

```
docker-compose up -d
```