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
- Host: GitHub
- URL: https://github.com/mabenj/holvi-app
- Owner: mabenj
- License: mit
- Created: 2023-07-19T19:45:20.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-29T20:04:30.000Z (9 months ago)
- Last Synced: 2025-02-09T07:44:41.519Z (3 months ago)
- Topics: chakra-ui, docker, encryption, nextjs, postegresql, sequelize, typescript
- Language: TypeScript
- Homepage:
- Size: 1.52 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.