Giter VIP home page Giter VIP logo

python-code-test's Introduction

Ostmodern Python Code Test

The goal of this exercise is to test that you know your way around Django and REST APIs. Approach it the way you would an actual long-term project.

The idea is to build a platform on which your users can buy and sell Starships. To make this process more transparent, it has been decided to source some technical information about the Starships on sale from the Starship API.

A Django project some initial data models have been created already. You may need to do some additional data modelling to satify the requirements.

Getting started

  • This test works with either Docker or Vagrant
  • Get the code from https://github.com/ostmodern/python-code-test
  • Do all your work in your own develop branch
  • Once you have downloaded the code the following commands will get the site up and running
# For Docker
docker-compose up
# You can run `manage.py` commands using the `./manapy` wrapper

# For Vagrant
vagrant up
vagrant ssh
# Inside the box
./manage.py runserver 0.0.0.0:8008

Tasks

Your task is to build a JSON-based REST API for your frontend developers to consume. You have built a list of user stories with your colleagues, but you get to decide how to design the API. Remember that the frontend developers will need some documentation of your API to understand how to use it.

We do not need you to implement users or authentication, to reduce the amount of time this exercise will take to complete. You may use any external libraries you require.

  • We need to be able to import all existing Starships to the provided Starship Model
  • A potential buyer can browse all Starships
  • A potential buyer can browse all the listings for a given starship_class
  • A potential buyer can sort listings by price or time of listing
  • To list a Starship as for sale, the user should supply the Starship name and list price
  • A seller can deactivate and reactivate their listing

After you are done, create a release branch in your repo and send us the link.

python-code-test's People

Contributors

sulami avatar

Stargazers

 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.