This is a solution to the Entertainment web app challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic project.
Users should be able to:
- View the optimal layout for the app depending on their device's screen size
- See hover states for all interactive elements on the page
- Navigate between Home, Movies, TV Series, and Bookmarked Shows pages
- Add/Remove bookmarks from all movies and TV series
- Search for relevant shows on all pages
- authentication - (sign-up/login)
- Frontend Mentor Solution URL: Entertainment web app with NextJs , MongoDb and Next Auth
- Live Site URL: Entertainment web app
Execute create-next-app
with
npx create-next-app --example with-mongodb with-mongodb-app
yarn create next-app --example with-mongodb with-mongodb-app
- or pnpm to bootstrap the example:
pnpm create next-app --example with-mongodb with-mongodb-app
The above command will create a project that is bootstrapped with mongodb
Set up a MongoDB database either locally or with MongoDB Atlas for free.
Copy the env.local.example
file in this directory to .env.local
(which will be ignored by Git):
cp .env.local.example .env.local
Set each variable on .env.local
:
MONGODB_URI
- Your MongoDB connection string. If you are using MongoDB Atlas you can find this by clicking the "Connect" button for your cluster.
npm install
npm run dev
# or
yarn install
yarn dev
Your app should be up and running on http://localhost:3000! If it doesn't work, post on GitHub discussions.
You will either see a message stating "You are connected to MongoDB" or "You are NOT connected to MongoDB". Ensure that you have provided the correct MONGODB_URI
environment variable.
When you are successfully connected, you can refer to the MongoDB Node.js Driver docs for further instructions on how to query your database.
- React - JS library
- Next.js - React framework
- Next Auth - Authentication
- Tailwind - styling
- Mongodb - data storage
- CSS Grid
- Mobile-first workflow
- How to Scroll Horizontally in React JS - Styled With Tailwind CSS - Javascript
- Floating Label Input with React + Tailwind CSS + Hook Form
- intergrating mongodb into your nextjs app
- How to Integrate MongoDB Into Your Next.js App
- generate a secret token using the following url secret token generator
Toggle the bookmark button so that a movie/tv series can be bookmarked or vice-versa
- Website - Chamu Mutezva
- Frontend Mentor - @ChamuMutezva
- Twitter - @ChamuMutezva