Skip to content

davidubuntu/phoneSmiths

Repository files navigation

PhoneSmiths WEB APP

Simple web application that shows a phone catalog with the information about different phones . User can view more deatailed info about the phone.

Technologies and apis

  • Node Api Route
  • React
  • Redux (managing fetch data from api)
  • Styled Components
  • Npm
  • Web server with Node (Express)
  • Node js
  • Webpack

Decisions

I decided to use create-react-app js application using a simple configuration.

I separate in single components to achieve the main purpose of the web.There is a main component which manages the communication with the api data model using Reudx.

I included more visual elements than the basic interface to make it similar to a real app, even not being functional any button or link apart from catalog(button and link).

For styling I used styled components to style the web.

I set a proxy field to in package.json to tell the development server to proxy any unknown requests to the API server in development.

This project was bootstrapped with Create React App.

Pages

Web is divided in two main parts (each of them is a link in the header navbar):

  • Home
  • Phones

INSTALL USING NPM

  • Step 1

    In the project root directory, run:

npm i

  • Step 2

    In the project root directory, run:

cd client

npm i

  • Step 3

    In the project root directory, run:

cd server

npm i

RUN USING NPM

Runs the app in the development mode.
In the project root directory, you can run:

npm start

This will run both server and client:

The page will reload if you make edits.
You will also see any lint errors in the console.

INSTALL AND RUN USING DOCKER

In the project directory, you can run:

docker-compose up

Test

Some simple unit test can be tested with jest and enzyme.
In the project root directory, you can run:

cd client

npm run test

About

Simple Web Mobile Store App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages