Skip to content

MatthiasWiesner/mysecrets_backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MySecrets Backend

Webserver to store and deliver client encrypted content.

Using:

  • Flask
  • Orator
  • Postgresql

Installation

Create database and user in postgresql

create database mysecrets;
create user mysecret with encrypted password '<very-secret-passwd>';
grant all privileges on database mysecrets to mysecret;

Install mysecrets-backend as mysecrets user

git clone [email protected]:MatthiasWiesner/mysecrets_backend.git
cd mysecrets_backend
chown -R mysecrets: .

# pipenv (installed with pip3) needs to be installed and the necessary libs as well
su mysecrets -c '/usr/local/bin/pipenv install'
su mysecrets -c '/usr/local/bin/pipenv shell'

# within pipenv shell
python db.py migrate
python db.py db:seed

# as root
cp ./resources/mysecrets-backend.service /etc/systemd/system/mysecrets-backend.service
systemctl daemon reload
systemctl enable mysecrets-backend.service
systemctl start mysecrets-backend.service

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages