My Social Network API - Backend Architecture
Secure REST API (Node.js, Express, MongoDB) for a social network: groups, events, transactional ticketing, carpooling and polls.
- Client
- EFREI academic project
- Year
- 2026
- Expertise
- Data & AI
- Services
- REST API, Backend Development, API Security, Data Modelling
- Tools
- Node.js
- Express
- MongoDB
- JWT
- Postman
Context
This project is part of a professional simulation in which Facebook commissioned a REST API for a brand-new social networking service. The goal was to design a robust backend architecture, with full freedom over the endpoint design, while meeting a precise functional specification.
Our approach
To meet these requirements, a complete and secure RESTful API was built with Node.js, Express and MongoDB.
Architecture & Modelling
Advanced database schemas to manage users, groups (public, private, secret) and events.
Social Features
Discussion threads attached to groups or events, commentable photo albums and interactive polls.
Ticketing & Transactions
Ticketing with strict stock control (one ticket per outside attendee) handled through atomic MongoDB transactions (mongoose.startSession()).
Collaborative Modules (Bonus)
An event Shopping List and an interactive Carpooling module.
Maximum Security
JWT authentication, bcrypt password hashing, rate limiting against brute force, hardened headers (Helmet) and HTTPS-only encrypted traffic.
Deliverables
A fully working REST API documented in Postman, with source code validated by security tests and an architectural visualisation through an interactive Terminal component and a data flow diagram.