Skip to content

TuringCom/python_django_challenge_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Turing Back End Challenge

To complete this challenge, you need to ensure all route returns a similar response object as described in our API guide. To achieve this goal, you will have to fix the existing bugs, implement the incomplete functions, and add test cases for the main functions of the system.

Getting started

Prerequisites

In order to install and run this project locally, you would need to have the following installed on you local machine.

Installation

  • Clone this repository

  • Navigate to the project directory cd src/

  • Create a virtual environment

  • Install dependencies pip3 install -r requirements.txt

  • Edit src/turing_backend/settings.py database credentials to your database instance

  • Create a MySQL database and run the sql file in the database directory to migrate the database mysql -u <dbuser> -D <databasename> -p < ./sql/database.sql

  • Run the command python manage.py makemigrations

  • Run the command python manage.py migrate to create and sync the mysql database (you must have the database previously created with name 'turing_db').

  • It's needed that you have your own super user to admin the application, so run the command python manage.py createsuperuser and follow the instructions.

  • Run the command python manage.py runserver

  • Run development server

python manage.py runserver

Request and Response Object API guide for all Endpoints

Using Docker

Build image

docker build -t turing_app .

About

Python Django challenge template for backend challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •