Giter VIP home page Giter VIP logo

dictonary-app's Introduction

Coding Exercise

Overview

Screenshot 2022-11-07 at 3 05 19 pm

Screenshot 2022-11-07 at 3 04 24 pm

Install

Run npm install under both frontend and backend directories

Config

create a .env file under frontend directory with following content

REACT_APP_FAVOURITES_API_URL = http://localhost:3001
REACT_APP_DICTIONARY_API_URL = https://api.dictionaryapi.dev

Run

the frontend app run with the node backend, so backend server should be run before frontend dev server.

cd backend && npm start cd frontend && npm start

Unit Test

npm run test:jest

Results

Screenshot 2022-11-07 at 3 01 08 pm

E2E Test

NOTE: Please start node backend before running e2e test

npm run test:cy

Results

Screenshot 2022-11-07 at 3 00 12 pm

Dockerise frontend

cd frontend

docker build -t dictionary .

docker run -p 8080:80 dictionary

What can be imporved, if having more time.

  1. Responsive design for small screen and mobile devices
  2. Loading design with spinner. Only Loading... text has been added at the moment
  3. More error handling design for handling api errors
  4. A11y improvement
  5. Covering more scenarios on E2E test

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.