Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeffersonribeiro/luizalabs-front-end
Single Page App built with React to search places by CEP and save to favorites.
https://github.com/jeffersonribeiro/luizalabs-front-end
continuous-deployment continuous-integration integration-testing react redux spa unit-testing
Last synced: about 3 hours ago
JSON representation
Single Page App built with React to search places by CEP and save to favorites.
- Host: GitHub
- URL: https://github.com/jeffersonribeiro/luizalabs-front-end
- Owner: jeffersonRibeiro
- Created: 2019-01-19T14:30:04.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-10-27T13:58:26.000Z (about 2 years ago)
- Last Synced: 2024-08-07T23:50:43.025Z (3 months ago)
- Topics: continuous-deployment, continuous-integration, integration-testing, react, redux, spa, unit-testing
- Language: JavaScript
- Homepage: https://luizalabs-229113.firebaseapp.com/favorites
- Size: 1.08 MB
- Stars: 4
- Watchers: 3
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Luizalabs Front End Test [![CircleCI](https://circleci.com/gh/jeffersonRibeiro/luizalabs-front-end.svg?style=shield&circle-token=5a8843f9fcb781df4aa43bc76fc0f1460e012f8a)](https://circleci.com/gh/jeffersonRibeiro/luizalabs-front-end)
## Basic Overview - [Live Demo](https://luizalabs-229113.firebaseapp.com/)
A Single Page application built with React to search places by CEP and save to favorites. The application is simple but is using advanced techniques of front end development like SPA navigation, state management, unit tests, integration tests, continuous integration, continuous deployment, SASS, scaleable folder structure, ESlint and prettierrc to maintain code styling quality.
**Important:** _To secure my Google Maps API_KEY I've built a Node app and hosted it on Heroku and because of that it may take a while to load the first map if the Heroku app is in sleep mode. You can check the code [here](https://github.com/jeffersonRibeiro/node-google-static-map-proxy)_
#### Features
- Search for a CEP and add to favorites
- Favorite list persist after page reload
- Responsive
- **Unit tests and integration tests**
- **CircleCI Continuous Integration and Deployment with Firebase**#### Using
- React
- Redux - state management
- React Router - SPA functionality
- Axios - for promise HTTP requests
- CSS
- BEM methodology
- SASS
- Moxios - to stub http request
- Enzyme - to mount, shallow, render and query the DOM tree of React components
- Native local storage - to persist products in cart even after page reload
- CircleCI
- Firebase## About tests
- Unit tests
- All components have at least a basic smoke test
- **Integration tests**
- **Search for a CEP and add place to favorite**### Coverage report
![coverage](./doc/coverage-report.png 'coverage')
## Build/Run
#### Requirements
- Node.js
- NPM```javascript
/* First, install the needed packages */
npm install/* then start the React app */
npm start/* to run the tests */
npm run test```
A little project by Jefferson Ribeiro