Skip to content

davidmarciano/messages-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Messages app

This project is the UI part of messages app which communicate with messages-app-service to complete a full stack application. The project created with create-react-app, use Axios to communicate with the server and styled components for styling.

Project structure

There are 3 main components which helps the app works:

  1. App.js - Is where you can find all the logic and application state changes. It's use the api.js helper to communicate with the server. There are 5 states variables. 3 of them for values changes in input (Email,Message and Filter) and 2 of them for existing user comments and filtering them (items and filteredItems). The App.js has a Wrapper component which includes 2 childrens - FormSection and MessagesSection.

  2. FormSection.js - Is a presentational component which have an Email input, Text area and submit button. It gets all the parameters and functionallity from the App.js component.

  3. MessagesSection.js - Also a presentational component which gets all parameters and functionallity from App.js. This section has 2 main parts - Filter input to filter search terms from the given data of the MessagesBox. MessagesBox which show the data of the users comments.

Running instructions

Download the project to you computer, install the modules by typing 'npm install'. before running it you should run the messages-app-service and point to it. Goes to api.js under src/api and change the url parameter to the relevant enviroment. After that you can 'npm start'.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •