Backend API for Fans Arena
Fans Arena is a transparent, global platform where real football fans can register their support for their favorite clubs. This repository contains the backend (RESTful API) built with Express.js and MongoDB, powering user management, club leaderboards, authentication, and admin features.
This is the backend server for Fans Arena, developed as the final project for the Ironhack Web Development Bootcamp by Pedram Ghane (Full Stack Developer).
Tech stack:
- Node.js
- Express.js
- MongoDB
- Mongoose
- JWT Authentication
- dotenv
- bcryptjs
- cors
- ...and more
Live Demo (Frontend): fansarena.netlify.app
Frontend repo: fansarena-client
- RESTful API for all core resources (users, clubs, leaderboards, etc.)
- Secure authentication & authorization (JWT)
- User profile & favorite club management
- Admin endpoints (demo only)
- CORS configuration for frontend integration
- Error handling and validation
- MongoDB Atlas/Cloud or local MongoDB support
- Node.js (v18+ recommended)
- npm or yarn
- MongoDB (local or MongoDB Atlas)
Clone this repository:
git clone https://github.com/iampedi/fansarena-server
cd fansarena-server
npm install