Giter Club home page Giter Club logo

ab-inbev-assessment's Introduction

AB-INBEV-ASSESSMENT

AB-INBEV recruitment assessment task.

REST API Docs

AB-INBEV assessment documentation link

Required Features

User can sign up.
User can sign in.
An Authenticated user can calculate the area of different shapes.
An Authenticated user can fetch all previous computation record.

Installation and Running the Application

Ensure that you have NodeJS and npm installed in your computer

a. Clone this repository into your named folder

git clone https://github.com/markeu/AB-INBEV-ASSESSMENT.git
git status

b. Install the project dependencies

yarn

c. Start the application

yarn start

Test the endpoints

The application can be tested locally through localhost on port 5000 or through the live url using postman or easily using the documentation link url

  1. Run the application while postman is open
  2. Go to postman and test against the endpoints below with the required property:-

Endpoints to test

Method Endpoint Enable a user to:
POST /signup Create user account
POST /login Login a user
POST /calculate Calculate the area of different shapes
GET /fetchRecords Fetch all my previously computated data

NB:

To calculate for the area of a triangle.

{
"shape": string,
"dimension: {"a": number, "b": number, "c": number}
}

To calculate for the area of a rectangle.

{
"shape": string,
"dimension: { "a": number, "b": number }
}

To calculate for the area of a square or circle.

{
"shape": string,
"dimension: number
}

Author

  • Uche Uzochukwu Mark

ab-inbev-assessment's People

Contributors

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