Giter VIP home page Giter VIP logo

kaizntreedashboard's Introduction

Project Overview

This project is a web application designed to manage inventory items. It utilizes Django REST Framework for the backend with a PostgreSQL database. The frontend design mockups are created using Figma. This project is completed as part of the Kaizntree backend challenge.

Installation

Follow these steps to set up the project environment and run the application:

Python Installation: Ensure Python is installed on your system and added to PATH during installation.

Verify Python Installation: Confirm Python installation by running python --version in the terminal.

Python Dependencies: Install all the requirements using the following commands

    python3.10 -m pip install -r requirements.txt
    python3.10 -m pip install django-filter
    python3.10 -m pip install django-cors-headers
    python3.10 -m pip install django-rest-swagger
    python3.10 -m pip install django-rest-passwordreset
    python3.10 -m pip install psycopg2-binary
    python3.10 -m pip install whitenoise

PostgreSQL Installation: Download and install PostgreSQL from the official website.

    sudo sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
    wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
    sudo apt install postgresql postgresql-contrib
    sudo systemctl start postgresql.service
    sudo systemctl enable postgresql.service

Create Database: Create a PostgreSQL database named kaizn.

    CREATE DATABASE kaizn;

Redis Server: Install redis-server and start the server

    curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
    echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list
    sudo apt-get install redis
    redis-server --port 6380 &

Run Migrations: Run database migrations using

    python3.10 manage.py makemigrations
    python3.10 manage.py migrate

Run Application: Start the Django development server with python3.10 manage.py runserver.

API Documentation

The API endpoints are documented using Swagger. You can access the interactive endpoints documentation here

Frontend Mockups

The frontend design mockups are available on Figma. View the mockups here.

Unit Testing

To test the API endpoints, use the following commands:

  • python manage.py test auth_api
  • python manage.py test item_api

Technological Choices

  • PostgreSQL: Chosen for its robustness in handling complex data relationships and queries.
  • JWT for Authentication: JWT tokens are used for authentication due to their compactness, stateless nature, and secure digital signatures.

Frontend URL

TBD

kaizntreedashboard's People

Contributors

shikhar97 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.