Online album to share, categorize and map your images!
View Demo
·
Report Bug
·
Request Feature
Table of Contents
TODOOnline album to share, categorize and map your images!
I used Ubuntu 20.04 - WSL
- Generate Google reCAPTCHA keys (reCAPTCHA v2 - invisible)
- site key
- secret key
- Generate secret key for JWT:
openssl rand -base64 64
Every step is done starting from project root directory
-
Clone the repo
git clone https://github.com/Workata/photo-album.git
-
Set API keys - backend
cd backend touch .env echo "SECRET_KEY_LOGIN_TOKEN=\"<insert_JWT_key_here>\"" >> .env echo "SECRET_KEY_GOOGLE_RECAPTCHA=\"<insert_RECAPTCHA_key_here>\"" >> .env
-
Set API keys - frontend
cd frontend touch .env echo "REACT_APP_RECAPTCHA_SITE_KEY=<insert_RECAPTCHA_site_key_here>" >> .env
-
Create admin account (use venv with required libs)
cd backend . ./venv/bin/activate python ./src/utils/addAdmin.py <username> <password>
- Create python venv - only once
cd backend python3 -m venv ./venv
- Install python libs - only once
cd backend . ./venv/bin/activate pip install -r requirements.txt
- Install npm packages - only once
cd frontend npm install
- Run backend
cd backend . ./venv/bin/activate uvicorn src.main:app --reload
- Run frontend
cd frontend npm start
-
Change domain name in a Caddyfile
-
Build images using Docker Compose
sudo docker-compose build
-
Start containers
sudo docker-compose up
TODO
TODO
Me, lmao
Distributed under the MIT License. See LICENSE for more information.
Mail: workatagit@gmail.com
Project source: https://github.com/Workata/photo-album
Project website: TomTol