This project is my personal exploration of building a comprehensive MERN stack website that provides information about all Detective Conan movies, including plot summaries, character details, release dates, and more. This project serves as my introduction to full-stack development, combining both web design and backend functionality.
- Frontend: https://detective-conan-movie.netlify.app/
- Backend (API and status): https://detective-conan-movie-1.onrender.com/
API endpoint:
/api/movies: movies list/api/characters: characters list/api/movie/movie_ID: specific movie detail/api/character/character_ID: specific character detail
- Display movies: View all Detective Conan movies with detailed summaries, posters, casts, trailers, soundtracks, and more.
- Display characters: Explore details about characters appearing in the movies, including names, aliases, occupations, and movie appearances.
- Search: Search for movies or characters by entering any part of the name. The search supports partial and case-insensitive matches. Characters can be searched by their names or aliases. Movies can be searched by title and ID.
- Filter: Filter movies and characters based on types.
- Sort: Sort characters by gender, status, and number of movie appearances.
- Scroll to top: Quickly navigate back to the top of the page with a button.
- MERN Stack: MongoDB, Express.js, React.js, Node.js
- Material UI: For styling and UI components
- References:
Ensure you have the following installed:
- Node.js (v14 or higher)
- npm (v6 or higher)
- MongoDB (local instance or MongoDB Atlas)
-
Clone the Repository:
git clone https://github.com/dohonglong/detective-conan-movie cd detective-conan-movie -
Install Dependencies:
Navigate to each folder and install dependencies:
- Backend:
cd server npm install- Frontend:
cd ../client npm install -
Set Up Environment Variables:
Create a
.envfile in theserverfolder with the following content:MONGO_URI=your_mongodb_connection_string PORT=5000 JWT_SECRET=your_jwt_secretReplace
your_mongodb_connection_stringandyour_jwt_secretwith your actual values. -
Run MongoDB:
Ensure MongoDB is running locally or that you have a valid MongoDB Atlas connection string.
-
Start the Backend:
- Navigate to the
serverfolder:
cd server- Start the server:
node index.js- Backend will run on
http://localhost:5000by default.
- Navigate to the
-
Start the Frontend:
- Open a new terminal and navigate to the
clientfolder:
cd client- Start the frontend:
npm start- Frontend will run on
http://localhost:3000by default.
- Open a new terminal and navigate to the
Make sure to set up the following environment variables:
- MONGO_URI: MongoDB connection string
- PORT: Server port (default: 5000)
- JWT_SECRET: A secret key for signing JSON Web Tokens
- Ensure MongoDB is running and the
MONGO_URIis correctly set in your.envfile.
- Check if the backend is running on the correct port (
http://localhost:5000) and that API endpoints are configured properly.
If you encounter any issues, feel free to contact me at [dohonglong1998@gmail.com].





