GithubHelp home page GithubHelp logo

pretest's Introduction

Omni Pretest

Setup Environment

  • Download docker and Install

  • Fork this pretest project to your own repository

  • Clone pretest project from your own repository

    git clone https://github.com/[your own account]/pretest.git
    
  • Checkout pretest directory

    cd pretest
    
  • Start docker container

    docker-compose up
    
  • Enter activated pretest-web-1 container

    docker exec -it pretest-web-1 bash
    

    Note:

    • This container codebase is connected to pretest project local codebase
    • If you need to migrate migration files or test testcases, make sure do it in pretest-web-1 container

Requirements

  • Construct Order Model in api app

    The below information is necessary in Order model:

    • Order-number
    • Total-price
    • Created-time
  • Construct import_order api ( POST method )

    • Validate access token from request data

      ( accepted token is defined in api/views.py )

    • Parse data and Save to corresponding fields

  • Construct api unittest


Advanced Requirements ( optional )

  • Replace the statement of checking api access token with a decorator

  • Extend Order model

    • Construct Product model
    • Build relationships between Order and Product model
  • Get creative and Extend anything you want


Submit

  • After receiving this pretest, you have to finish it in 7 days

  • Create a pull request and name it with your name ( 王小明 - 面試 )

  • Feel free to let us know if there is any question: [email protected]

pretest's People

Contributors

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