A full-stack face recognition project with:
- Backend: Node.js, Express, PostgreSQL, Sequelize
- Frontend: React, Vite, React Router
- Face detection: Face++ API integration
client/— React frontend appface_api/— Express backend APIdatabase/— PostgreSQL Docker compose and initialization scripts
- Registration/Sign-in: Users create accounts or sign in via the React frontend
- Face Detection: Authenticated users submit image URLs for face detection
- API Processing: Backend calls Face++ API to detect faces and attributes
- Results Display: Frontend displays bounding boxes and face attributes
- Entry Tracking: User entry counts are updated and stored in PostgreSQL
- Frontend: React SPA with routing, hooks, and context for state management
- Backend: REST API with user authentication and face detection endpoints
- Database: PostgreSQL with Sequelize ORM for data persistence
- External API: Face++ for computer vision face detection
-
Start the database:
cd database docker compose up -d -
Install dependencies:
npm install
-
Start backend only:
npm run server
-
Start frontend only:
npm run client
-
Start both frontend and backend together:
npm run dev
npm run install-client— install frontend dependenciesnpm run install-server— install backend dependenciesnpm run install— install both frontend and backendnpm run server— start backend in watch modenpm run client— start frontend in dev modenpm run dev— start both backend and frontend in parallel
- Backend API is expected at
http://localhost:3000 - Frontend Vite server usually runs on
http://localhost:5173 - Frontend config is stored in
client/.env
client/README.md— frontend app documentationclient/PROJECT_STRUCTURE.md— frontend directory and architecture guideclient/DEVELOPER_GUIDE.md— frontend developer referencedatabase/README.md— database setup guideface_api/README.md— backend API documentationdatabase/docker-compose.yml— database service definitionface_api/src/config/database.js— backend DB connectionface_api/src/routes/— backend API route definitions