Code Monkey home page Code Monkey logo

django-product-review-app's Introduction

Simple products review applicaiton using django

This application houses a list of products that can be reviewed by users. An admin can apply CRUD operations on products while a user can review products only if logged in.

Requirements

  • conda 4.12.0
  • docker
  • docker-compose

Local Setup Instructions

The following instruction are for setting up and running the app locally.

Environment Setup

Navigate to project folder and run the following to install the requirements:

conda env create -f environment.yaml

Inside the project folder run the following command to activate the environment:

conda activate django-product-review-app

Navigate to the project folder and run the following command for creating all database migrations:

python3 manage.py migrate

Create your super user account with the following command inside the project directory:

python3 manage.py createsuperuser

Tests

Run all tests with the follwing command inside the project directory:

python3 manage.py test

To run a test for a specific module use the following command inside the project directory and replace <module_name> with the name of the module you want to run the test for such as products:

python3 manage.py test <module_name>

Launch App

Run the Python dev server with the following command inside the project directory:

python3 manage.py runserver

Docker Setup Instructions

The following instructions are for setting up and running the app using docker.

Docker Build

Build the docker container with the following instructions, the container will need to be rebuilt with every code change:

docker-compose build

Launch App

Launch the docker container with the following command:

docker-compose up

django-product-review-app's People

Contributors

dependabot[bot] avatar wmramadan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

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