Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laforetmoreno/spotifood
Ifood challenge
https://github.com/laforetmoreno/spotifood
date-fns docker eslint husky prettier reactjs redux redux-thunk sass storybook
Last synced: about 1 month ago
JSON representation
Ifood challenge
- Host: GitHub
- URL: https://github.com/laforetmoreno/spotifood
- Owner: laforetmoreno
- Created: 2020-08-06T21:33:22.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-11T17:33:46.000Z (over 4 years ago)
- Last Synced: 2024-11-08T02:41:41.125Z (3 months ago)
- Topics: date-fns, docker, eslint, husky, prettier, reactjs, redux, redux-thunk, sass, storybook
- Language: JavaScript
- Homepage:
- Size: 1.39 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spotifood
## Project
Example project consuming the Spotify api. Using the most used techologies on the market. Mobile first was thought, since most of the accesses to the web today are via mobile.
## Dependencies
- (Node.js 12+)[https://nodejs.org/]
- (spotifood-bff)[https://github.com/morenopereira/spotifood-bff]## Problems
One of the values answered by the api does not work, but specifically the US value parameter in the countries array. So to fix it I created a function that sets the parameters manually to make sure it works.
## Technologies used
- React
- Redux
- Redux-Thunk
- React Test Library
- Date-fns
- Husky
- SASS
- Storybook
- Eslint
- Prettier
- Docker e Docker Compose## Development
Clone spotifood-bff
1. `cd spotifood-bff`
2. `cp .env.sample .env` (And change the required envs)
3. `npm install` or `yarn`
4. `npm start` or `yarn start`Clone this repository
1. `cd spotifood`
2. `cp .env.sample .env` (And change the required envs)
3. `npm install` or `yarn`
4. `npm start` or `yarn start`## Running with Docker
1. `cd spotifood-bff`
2. `cp .env.sample .env` (And change the required envs)
3. `docker-compose uo --build`4. `cd .. && cd spotifood`
5. `cp .env.sample .env` (And change the required envs)
6. `docker-compose uo --build`## Scripts
- `start` - Starts development server
- `build` - Builds the application assets for production
- `test` - Runs all unit tests
- `lint` - Run lint
- `storybook` - Run storybook