Giter VIP home page Giter VIP logo

nda2024's Introduction

A simple online catalog for NDA company

This is a small django application, introducing online catalog of products with categories and brands. In plans: a cart and mail notifications services

Pre-requisites

  • python 3.8+ installed
  • psql connection available

Installation:

python3 -m virtualenv venv
source venv/bin/activate
pip install -r requirements.txt

Configuration:

  1. Create .env file and populate it with values. Please check .env.example for reference
  2. Run initial database commands:
    python3 manage.py migrate
    python3 manage.py createsuperuser
  3. Run collect static command
    python3 manage.py collectstatic
  4. How to sync migrations and database
    pg_restore -U postgres -h 0.0.0.0 -d xxxx < dump.dump --disable-triggers
    rm -rf catalog/migrations
    rm -rf files/migrations
    python manage.py makemigrations
    python manage.py migrate
    pg_dump --column-inserts --data-only -h 0.0.0.0 -U postgres -W -Fc xxxx > dump.dump

replace "xxxx" with DB_NAME and "postgres" with your DB_USER

  1. Redis start
    redis-server
    stop
    service redis-server stop 
    flush cache
    redis-cli flushall

Run the app

python3 manage.py runserver

nda2024's People

Contributors

megakenga avatar abi83 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.