This project is a movie library web application that allows users to sign up, log in, search for movies, and create personalized lists of their favorite movies. Users can also manage the privacy settings of their lists. The application leverages the OMDB API to fetch movie details and is deployed on Render for demonstration.
- User Authentication: Users can sign up and log in to the application.
- Movie Search: Users can search for movies and view detailed information about each movie.
- Movie Lists: Users can create, view, and manage lists of movies. These lists can be marked as public or private.
- Responsive Design: The application has a user-friendly layout inspired by popular movie-related websites.
You can access the live application here: Movie Library Web Application
The source code is available on GitHub: GitHub Repository
- Frontend: React.js
- Backend: Node.js, Express.js
- Database: MongoDB
- Authentication: JWT (JSON Web Tokens)
- API: OMDB API
- Deployment: Render
Follow the steps below to set up and run the project locally.
- Node.js
- MongoDB
-
Clone the repository:
git clone https://github.com/gargdev/movieapp.git cd movieapp -
Install backend dependencies:
cd backend npm install -
Set up environment variables: Create a
.envfile in thebackenddirectory and add the following variables:PORT=5000 MONGODB_URI=your_mongodb_connection_string JWT_SECRET=your_jwt_secret OMDB_API_KEY=your_omdb_api_key
-
Start the backend server:
npm start
-
Install frontend dependencies:
cd ../frontend npm install -
Set up environment variables for the frontend: Create a
.envfile in thefrontenddirectory and add the following variable:REACT_APP_API_URL=http://localhost:5000
-
Start the frontend server:
npm start
-
Access the application: Open your browser and navigate to
http://localhost:3000.
- Sign Up / Log In: Create a new account or log in with existing credentials.
- Search Movies: Use the search bar on the home screen to find movies.
- Create Lists: Add movies to your lists and manage the visibility of your lists.
- View Lists: Access your movie lists from the home page.
Contributions are welcome! Please fork the repository and create a pull request with your changes.
This project is licensed under the MIT License.
For any questions or suggestions, please contact Anoop Kumar Pandey at [email protected].
Feel free to customize this README file as per your specific requirements.