Skip to content

Kalpesh-18/Passwordmanager

 
 

Repository files navigation

Django CI

Password manager

Web based password manager using Django and React

Installation

Python

Install python requirements - Python must be installed on the device

pip install -r requirements.txt

NPM

Installing npm requirements - Node.js must be installed on the device

  1. Go in the Frontend directory
cd frontend
  1. Run this command to install requirements
npm install

Django

  1. 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()
  1. Create a file called .env in the main directory. In the file write the following:
SECRET_KEY='YOUR GENERATED KEY'
  1. Run all migrations for the database with these commands in the main directory
python manage.py makemigrations
python manage.py migrate

Running on local machine

To start the Django server, run this command from the directory of the project

python manage.py runserver

To start React

  1. Go in the frontend directory
cd frontend
  1. Start React with npm
npm run dev

Running it on Docker

  1. docker build --file=frontend.dockerfile -t password-web-frontend .
  2. docker build --file=backend.dockerfile -t password-web-backend .
  3. docker-compose -f docker-compose.yml up
  4. Check localhost:8000

About

Web Passwordmanager made with Django and React

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 49.7%
  • Python 42.4%
  • CSS 3.7%
  • Dockerfile 2.6%
  • HTML 1.6%