Coder Social home page Coder Social logo

cornercase-task's Introduction

Restaurant Menu voting system

Installation process (with Docker)

  • Clone this repository
  • Create a file .env and copy all data from .env-sample file
  • Run this command: docker-compose build
  • Run this command: docker-compose up
  • Open another terminal and run docker ps and you will see list of containers and one will have name ending _app_1, copy the name
  • Run this command docker exec -it cornercase_task_app_1 bash, here instead of cornercase_task_app_1, paste your copy name, this will open app container
  • Now in the app container run below commands:
    • python manage.py migrate
    • python manage.py createsuperuser (provide username, email and password)
    • python manage.py test (Run all test cases)

Installation process (without Docker)

  • Clone this repository
  • Create a file .env and copy all data from .env-sample file
  • Create your virtual environment by python3 -m venv venv
  • Turn it on
  • Install all packages from requirements.txt file by this command pip install -r requirements.txt
  • Create you postgresql database
  • Open this file core/config/local.py and set database info
  • Run all migrations by python manage.py migrate
  • Create superuser by python manage.py createsuperuser
  • Run all unit-test by python manage.py test
  • Run the server python manage.py runserver
  • Swagger doc: http://localhost:8000/swagger/

In your postman import menu-voting API.postman_collection.json for API collection

cornercase-task's People

Contributors

farhapartex avatar

Watchers

James Cloos 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.