Project X aka take home assignment
- node (>=16)
- make
- python 3.11
- Run make to create virtual environment
make- Activate the venv
source .venv/bin/activate- Install python dependencies
pip install -r requirements.txt- Install nodejs dependencies
cd user-service
npm installGET/users: List all usersGET/users/:id: Get users by IDPOST/users: Create a new userPUT/users/:id: Edit a userDELETE/users/:id: Delete a user
- Start user service
cd user-service
npm startGET/products: Retrieve all productsPOST/products: Create a new productGET/products/:id: Get product by IDPUT/products/:id: Update product by IDDELETE/products/:id: Delete product by ID
- Run backend
- Run migrations to create database tables:
- Create an admin(username:admin/pass:homebase2023)
- Start backend
cd backend
python manage.py migrate
python manage.py createsuperuser
python manage.py runserverMake requests to the hardcode proxy user-service
- Start the proxy service
- Run the Python Proxy Script (
localhost:5000/proxy)
cd proxy-service
python api_proxy.py