This repository is a clone of TMDB site. It uses the free TMDB api to fetch latest movies. The project was made using express with ejs for server side rendering. An admin panel is also deployed which was written using ReactJS.
the_movie_database/
│
├── client/ # ReactJS-based admin panel
└── server/ # Express.js server with EJS rendering
Follow the steps below to set up and run both the client and server locally.
git clone https://github.com/your-username/the_movie_database.git
cd the_movie_database
cd server
npm install
Inside the server/
folder, create a .env
file and add the following environment variables:
MONGO_URI=your_mongodb_connection_string
SESSION_SECRET=your_session_secret
PORT=5000
MOVIE_API_KEY=your_tmdb_api_key
You can get your MOVIE_API_KEY
by creating a free account on TMDB.
npm start
cd client
npm install
npm start
By default, the client runs on http://localhost:3000
.
- Make sure MongoDB is running locally or provide a valid remote URI in the
.env
file. - The server must be running for the client (admin panel) to work properly if they communicate directly.