Giter Club home page Giter Club logo

up_onboarding_project's Introduction

UP_onboarding_project

Introduction

The goal of this project is to provide minimalistic django project on:-

• A Web App • Database • RESTful API endpoints for: • Creating merchants, stores and items • APIs should handle list view, detail view, CRUD operations • Authentication! • Test-cases

Techs Used

  • Django
  • MySQL
  • JWT Authentication
  • PyTest
  • Celery
  • RabbitMQ
  • Locust
  • Silk

Steps To Reciprocate

Installing inside virtualenv is recommended, however you can start your project without virtualenv too.

Getting Started

Activate the virtualenv for your project.

Add .env file to the project folder with a Django Security Key:

Create a MySQL database with name up-task and update the username and password in settings of project directory.

Install project dependencies:

$ pip install -r requirements.txt

Then simply make the migrations:

$ python manage.py makemigrations

Then simply apply the migrations:

$ python manage.py migrate

You can now run the development server:

$ python manage.py runserver

Endpoints for Now

  • / It opens the home page for the web app where we can see all the listed endpoints.
  • /admin/ It opens the admin page for the Django app.
  • /register/ For registering users on the basis of Role that are Merchant and Consumer.
  • /login/ For logging in as Merchant or Consumer.
  • '/token/obtain/' For the reason, if the user wants to see his/her JWT token.
  • /token/refresh For the reason, if the user wants to update his/her JWT Token.
  • /change_password/ Used by any registered user to change their password.
  • /stores/ Used by Merchant for adding a new and view their registered stores.
  • /items/ Used by Merchant for adding items under their Registered Stores.
  • /placeorders/ Used by consumer to place orders.
  • /seeorders/ Used used by the merchant to see the orders that have been placed that their registered stores.

WEEK_1_Task - [Status-Done]

  • A Web App

  • Database

  • RESTful API endpoints for:

  • Creating merchants, stores and items

  • APIs should handle list view, detail view, CRUD operations

  • Authentication!

  • Test-cases

  • Technology Used [Virtualenv, Django, Pytest, Tastypie/DRF, MySQL, Github workflow, JWT]

WEEK_2_Task - [Status-Done]

  • API endpoint to support orders – creation + list
  • Generating orders — lots and lots of them!
  • Asynchronism boost
  • Understanding what is happening in the system — logs & profiling
  • Technology Used [Locust, RabbitMQ, Celery, Structlog, Silk]

up_onboarding_project's People

Contributors

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