Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interview Exercise - Purchase Requests

A small Django + React project that serves an API endpoint and the React app for the coding exercise.

Goal

Implement the Purchase Requests API in backend/, then build a React component in frontend/ that consumes it.

Setup

From the repo root:

make setup

On Windows PowerShell, run .\setup.ps1 instead - make setup shells out to setup.sh.

To start over, make reset deletes everything setup creates - the virtualenv, the SQLite database, caches, and node_modules - so make setup runs from a clean slate.

(Requires Python 3.10 or newer, Node 20 or newer, and yarn)

Run

make run            # API on :8000 and dev server on :5173
make run-backend    # API only
make run-frontend   # dev server only
make test-backend
make test-frontend
Frontend http://localhost:5173
API http://localhost:8000/api/purchase-requests/

The React app calls relative /api/... paths and Vite proxies them to Django (frontend/vite.config.ts), so there is no CORS to configure and no API base URL to set.

The exercise

  • Backend: [backend/EXERCISE.md](backend/EXERCISE.md)
  • Frontend: [frontend/EXERCISE.md](frontend/EXERCISE.md)

About

Procurify FullStack Interview Coding Exercise

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages