/gympass

Primary LanguageJavaScript

GitHub profile :octocat:

Description

This project allows you to view repositories and commits of the user "reactjs" according to user search parameters.

The technologies used were React, redux and redux-pack (middleware for redux) to handle asynchronous requests handling, styled-components (CSS-in-JS), Jest + Enzyme to tests unit, ESLint + Prettier as linter and Ducks pattern for redux reducer bundles (https://github.com/erikras/ducks-modular-redux).

ES6+ features

Destructuring

Used to facilitate access to data within an array or object and to create variables that contain this data. This feature leave the code shorter and clearer.

Spread operator

Used to combine arrays, set values ​​of the prior state of the reducer, and to set values ​​to arrays or objects in general.

Async/await

Used to work with asynchronous code, as in calling a function that returns a promise. This way it is simpler and leaves the code clear.

Arrow functions

allows writing functions without losing the current "this" scope and leaving the code shorter.

Installation

Clone the repository https://github.com/JulianaAbreu/gympass.git

In the terminal:

git clone https://github.com/JulianaAbreu/gympass.git

Available Scripts

In the project directory, you can Install the dependencies with the command:

npm install

Run project:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

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

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.