Skip to content

7ubi/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

Starting Docker

docker-compose up --build -d

Stopping Docker

docker-compose down