- Node v17+
- NPM v8.5+ (Automatically installed with Node)
- Docker (Desktop for Mac/Windows, Engine for Linux)
- Your terminal of choice
- Your favorite text editor, we recommend VS Code for this workshop
We'll start by using Create React App to quickly bootstrap our single-page application:
npx create-react-app mini-olx-frontend
and move to the newly created folder
cd mini-olx-frontend
At the root of the project, let's create a .env
file to hold our project variables. This will come in hand later. You can read more about it [here](- https://create-react-app.dev/docs/adding-custom-environment-variables/#adding-development-environment-variables-in-env).
REACT_APP_API_BASE="http://localhost:4040"
Now run
npm start
and you can see your application running at http://localhost:3000/.