Skip to content

TuringCom/backend_challenge_template

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,
  • Add test cases for the main functions of the system.
  • Add Dockerfile to the root of the project to run the app in docker environment

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

  • Run npm install or yarn to instal the projects dependencies

  • create a .env file and copy the contents of the .env.sample file into it and supply the values for each variable

cp .env.sample .env
  • Create a MySQL database and run the sql file in the database directory to migrate the database
mysql -u <dbuser> -D <databasename> -p < ./src/database/database.sql
  • Run npm run dev to start the app in development

Docker

  • Build image

docker build -t node_challenge .

  • Run container docker run --rm -p 8000:80 node_challenge

Request and Response Object API guide for all Endpoints

Check here

About

Backend Challenge template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •