Assignment for Reaktor junior dev positions 2021
Here are the instructions to get the local development environment up and running. The instructions are for Windows but the steps for other environments should be similar.
This project consists of a proxy server and a front-end client that gets data from two legacy APIs via the proxy. Front-end client is served statically from the proxy
This project uses redis so to run it locally, you need to install redis on your machine.
- Ensure Git and Node.js are installed.
- Open Git Bash in the directory where you want the project to be saved.
- Clone this repository with
git clone
using either HTTPS or SSH - Move to the created folder by typing
cd bad-api-assignment
. - Open another terminal window
- On one terminal, type
cd proxy
and runnpm install
- On the other, type
cd client
and repeatnpm install
- Open two terminal windows in project root
- Inside proxy folder, run
npm run dev
- Inside client folder, run
npm start
- Inside proxy folder, run
npm run build:ui && npm start
Scripts runnable inside folder /client
npm start
- A local server should start up and you should be able to access the application with the addresshttp://localhost:3000/
. Any changes made to the code should be visible instantly on your browser.npm test
- Runs the tests.npm run lint
- Runs ESLint.
Scripts runnable inside folder /proxy
npm run dev
- Starts proxy server with nodemon watching for changes in the code.npm start
- Starts server without watch mode.npm run build:ui
- Removes current front-end build and rebuilds it