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

https://github.com/mabenj/holvi-app

Secure self hosted cloud storage system for videos and images
https://github.com/mabenj/holvi-app

chakra-ui docker encryption nextjs postegresql sequelize typescript

Last synced: about 2 months ago
JSON representation

Secure self hosted cloud storage system for videos and images

Awesome Lists containing this project

README

        

# Holvi app

## Deploy Docker

Adjust `docker-compose.yml` as desired and run:

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

## Development

### Setup database

Setup database by building and spawning a database container.

```bash
docker build -t holvi-db-dev ./src/db
```

```bash
docker run -d --name holvi-db-dev -p 5432:5432 -v holvi-db-data-dev:/var/lib/postgresql/data -e POSTGRES_USER=admin -e POSTGRES_PASSWORD= -e POSTGRES_DB=holvi holvi-db-dev
```

### Setup environment variables

Create a `.env.local` file in the root of the project and add the following variables:

`HOLVI_DB_CONNECTION_STRING=postgres://admin:@localhost:5432/holvi`

`HOLVI_DATA_DIR=`

`HOLVI_SESSION_PASSWORD=<32 character long session password>`

`HOLVI_GEO_API_KEY=`

`HOLVI_ENCRYPTION_KEY=<32 character long encryption key>`

### Install dependencies

```bash
yarn install
# or
npm install
```

### Start dev server

```bash
yarn dev
# or
npm dev
```

### Open browser

Open [http://localhost:3000](http://localhost:3000) and start coding.