simple app that consumes News API
- it's purpose is to discover and showcase few technologies
- so no apologies for sloppy architecture and bad api
- granted, ideal stack for this project would resolve around Next.js
App requires root .env
file. Here's the real one:
NODE_VERSION=16
NODE_ENV=development
# Api
# made this key for public
NEWS_API_KEY=49a77a082b3147d88f85dce779f9e5fc
API_PORT=8080
# Web
API_ENDPOINT=http://localhost:8080/
CHOKIDAR_USEPOLLING=true
git clone [email protected]:MarkoIvanetic/letsgo.git
cd letsgo/
Easiest way to run the app is with docker Docker
.
docker-compose up
This will install node dependencies in containers, propagate enviroment variables and sync changed data with volumes.
You can also do it manually. Don't worry about copying env - dotenv
source it from the root folder.
For starting the API:
cd api/
yarn
yarn start
API is not running on port:8080
For starting the web:
cd app/
yarn
yarn dev
App is not running on port:3000
- Docker - leading cause of imposter syndrom among developers
- React - our most beloved javascript library, especially since class components are off the hook.
- React Query - makes fetching, caching, synchronizing and updating server state in your React applications a breeze.
- Typescript - validates javascript with type checking, makes code more robust and confident.
- Material UI - UI library inspired by Google’s principles on building user interfaces. Uses emotion as it's style engine.
- React Testing Library (TBA) - freaking Kent C. Dodds made a library that tests your app in a way it's being used in real world.
- Reach UI (TBA) - provides unstyled components with built-in accessiblity.