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
cd spotifood-bff
cp .env.sample .env
(And change the required envs)npm install
oryarn
npm start
oryarn start
Clone this repository
cd spotifood
cp .env.sample .env
(And change the required envs)npm install
oryarn
npm start
oryarn start
Running with Docker
-
cd spotifood-bff
-
cp .env.sample .env
(And change the required envs) -
docker-compose uo --build
-
cd .. && cd spotifood
-
cp .env.sample .env
(And change the required envs) -
docker-compose uo --build
Scripts
start
- Starts development serverbuild
- Builds the application assets for productiontest
- Runs all unit testslint
- Run lintstorybook
- Run storybook