https://github.com/gregology/pgpsignature
PGP signature repo
https://github.com/gregology/pgpsignature
flask pgp pgp-signature python
Last synced: about 2 months ago
JSON representation
PGP signature repo
- Host: GitHub
- URL: https://github.com/gregology/pgpsignature
- Owner: gregology
- License: gpl-3.0
- Created: 2022-04-16T12:19:49.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-03T01:22:40.000Z (about 4 years ago)
- Last Synced: 2025-03-16T01:41:32.001Z (over 1 year ago)
- Topics: flask, pgp, pgp-signature, python
- Language: Python
- Homepage: https://pgp.clar.ke
- Size: 54.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PGP Signature
A repo for storing PGP Signatures.
## Production (Docker)
### Create Postgres database
```SQL
CREATE DATABASE "pgpsignature";
CREATE USER "user" WITH PASSWORD 'password';
GRANT ALL PRIVILEGES ON DATABASE "pgpsignature" TO "user";
```
### Create container
```bash
docker run -d \
-p 5000:5000 \
--name="pgpsignature" \
-e APP_SETTINGS="config.ProductionConfig" \
-e DATABASE_URL="postgresql://user:password@host.docker.internal/pgpsignature" \
gregology/pgpsignature:latest
```
### Initialize database
```bash
docker exec -it pgpsignature python /app/init_db.py
```
## Development
### Create Postgres database
```SQL
CREATE DATABASE "pgpsignature";
CREATE USER "user" WITH PASSWORD 'password';
GRANT ALL PRIVILEGES ON DATABASE "pgpsignature" TO "user";
```
### Install requirements
```bash
pip install -r requirements.txt
```
### Set environment variables
```bash
export APP_SETTINGS=config.DevelopmentConfig
export DATABASE_URL=postgresql://user:password@localhost/pgpsignature
```
### Initialize database
```bash
python /app/init_db.py
```
### Run app
```bash
flask run
```