Web based password manager using Django and React
Install python requirements - Python must be installed on the device
pip install -r requirements.txt
Installing npm requirements - Node.js must be installed on the device
- Go in the Frontend directory
cd frontend
- Run this command to install requirements
npm install
- Generate a Secret key for Django. Run these commands in a python console
from django.core.management.utils import get_random_secret_key
get_random_secret_key()
- Create a file called .env in the main directory. In the file write the following:
SECRET_KEY='YOUR GENERATED KEY'
- Run all migrations for the database with these commands in the main directory
python manage.py makemigrations
python manage.py migrate
To start the Django server, run this command from the directory of the project
python manage.py runserver
To start React
- Go in the frontend directory
cd frontend
- Start React with npm
npm run dev
docker build --file=frontend.dockerfile -t password-web-frontend .
docker build --file=backend.dockerfile -t password-web-backend .
docker-compose -f docker-compose.yml up
- Check localhost:8000