Code Monkey home page Code Monkey logo

django-data-loading-test's Introduction

django-data-loading-test

Rules:

  • You have to work in an existing project here Project
  • There is Two (2) Front-End variant Reactjs and Vuejs. Pick your favorit one. NB: If you are not good in Vujs or Reactjs, We suggest your to download the vuejs version and change the url to your own created post url from here post url, by this you will have the frontend data in your backend
  • Make a GitHub repository in your GitHub account (Make sure you push the code in correct folder stracture as ours).
  • First install your project and push your initial commit before start coding to your master branch.
  • Then create a new branch dev.1.0.0 and checkout in it and you will write your code in this new branch and push your final work in this branch
  • Solve all the tasks given below. Then submit the GitHub repository URL in the bottom page form.
  • You will have the demo data in src/django_coding_test.json. to load the demo data execute this command python manage.py loaddata django_coding_test.json after migrate the database

Project Structure:

  • The project has been created using pipenv . To install it run this command in your terminal/cmd "pip install pipenv" **You need to execute npm run watch commend from the root directory to generate js, and css files which you will see in static folder under src folder
  • You will have the JS source code in the src/template/assets/js directory
  • The main django project held in the src directory
  • All the config files are helds in root directory (i.e: Pipenv, package.json, webpack.mix.js)

Tasks:

Migrate the database

  • Create a superadmin from command line interface
  • Check the data flow diagrams. You need to apply this data flow for listing products on the table and insert new products into the database.

Data List: 4

  • Make a list of view page of Products table data the same as (2)
  • Make a data summary of the products same as (1)
  • Make data pagination of products same as (1)

Data Filter: 7

  • Make a product filter with product title, product variant, price range and date. Check (5)
  • Make sure the product variant data show dynamically and group by product variant table’s variant column same as (2)

Create Product: 5

  • (Click on Product and then Create Product from Left sidebar) this page has been designed with vuejs and reactjs you will find the code in the directory: src/template/assets/js/components/CreateProduct.vue?js (based on which version you downloaded).
  • As we use variant permutation thats why we use js framework, if you don't have enough knowladge in vuejs / reactjs we suggest you to download the vue project because vue have all the code to send the data to backend (django). All you need is to change the post url to your newly created url and that's all.
  • Insert data into products, product_variants, product_product_prices and product_images while create a product ,check the screenshot

Edit Product: 10

  • Data should be loaded as same as given data in the edit product page. And it can be updated

django-data-loading-test's People

Contributors

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