This is a Next.js project bootstrapped with create-next-app.
Assume that you are using linux, mac or windows devices.
- Browser
- Nodejs (18+)
- Corepack enabled
- Install dependencies
pnpm install- Run the development server:
pnpm devOpen http://localhost:3000 with your browser to see the result.
- nextjs
- jest/react-testing-library
- tailwindcss
- react-paginate
- react-toastify
- swiper
- axios
- react-query
- mongoose/mongodb
In the app folder, I have implemented 7 main routes:
- Home
- Movie Detail
- Popular Movie
- Upcoming Movie
- Login
- Logout
- Signup
One route link to one page. You can read more about Routing
I use axios as api client. There are 2 instances create from default axios, lib/axiosClient,
are using for querying TMDb data, `lib/defaultClient' for querying API route data.
Using fetch to query on the server side with lib/fetchWrapper.
Run test cases by command:
pnpm run testI'm using Vercel to deploy this app. Here is production