tygedavis / gandertwosum

Simple full stack app that will add two numbers together. Build in the front end with React and Typescript, backend with NodeJS and Typescript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GanderSum

About

GanderSum is a simple sum calculator for two numbers. It is a full stack app.

The front end is built using React and TypeScript. Unit tests are performed using Jest and Enzyme.

The back end is built using NodeJS, TypeScript, and Express. Unit tests are performed using Jest.


Instructions for local instalation

  • Clone this repository
  • In one terminal, cd into /app
  • In another terminal, cd into /api
    • First run npm install
    • Then run npm run serve
  • Add all the numbers you want

API Documentation

POST /addTwoNums

{
    num1: Integer
    num2: Integer
}

Note: Both num1 and num2 can be numbers in a string and still work.

Example

{
   num1: "2", // This will still work
   num2: 2
}

TODO

API

  • Build express server

  • Unit tests

  • Error handling

  • Improve unit tests to close async calls when finished

APP

  • Build front end app with inputs

  • Build the app to be responsive

  • App sends request to API to add the numbers

  • Error handling

  • Unit tests

  • Use less/Sass for styling (Not going to do)

About

Simple full stack app that will add two numbers together. Build in the front end with React and Typescript, backend with NodeJS and Typescript


Languages

Language:TypeScript 81.6%Language:HTML 11.1%Language:CSS 6.2%Language:JavaScript 1.2%