MERN web application that allows users to search for movies using the OMDB API and display the results. Additionally, users should be able to mark movies as favourites, which will be stored on the server-side storage (using in-memory data structure).
https://movie-velozity.vercel.app/
Backend_API: https://movie-app-velozity-xkww.vercel.app
GET /api/movies/search?query=${movie_name}
Parameter | Type | Description |
---|---|---|
movie_name |
string |
Required. Movie to search |
GET /api/movies/favorites/all
POST /api/movies/favorites
Parameter | Type | Description |
---|---|---|
actionType |
string |
add/remove |
imdbID |
string |
imdbID of the movie |
cd backend
npm install
- add Env Variables to .env ( http://www.omdbapi.com/apikey.aspx )
OMDB_API_KEY=
npm run dev
Api server will start at http://localhost:8000
cd frontend
npm install
- Change baseUrl to http://localhost:8000 to connect to local backend
export const baseUrl = 'localhost:8000';
npm run dev
ReactJs Frontend will start at PORT shown in the terminal.