🔥This project got 3.6k upvotes on Reddit and landed me an interview with Netflix🔥
View Demo »
Report Bug
·
Request Feature
To get a local copy up and running follow these simple steps.
Install latest version of npm
- npm
npm install npm@latest -g
- Clone the project
git clone https://github.com/Halmesn/.git
- Go to project directory and Install NPM packages
npm install
- Create a .env.local file
- Request an API key from TMDB and add it to .env.local file
NEXT_PUBLIC_TMDB_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- Create a database at MongoDB and add connection url to .env.local file
MONGODB_DATABASE=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- Add a next-auth host url to .env.local file
NEXTAUTH_URL=http://localhost:3000
- Create a trial account at your database, adjust the email address in AuthForm onTrialClick function and add it's password to .env.local file
NEXT_PUBLIC_TRIAL_ACCOUNT_PASSWORD=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- Start the application
npm next start
Creating an Account
- Go to Sign Up page.
- From the homepage, enter your email and click 'Get Started'.
- From Sign In page, click the 'Sign up now' link below 'Sign In' button.
- Input the necessary fields. Don't worry. It won't take long.
- Both email and phone number has to be unique.
- Or just click the trial account button, the email and password will be filled automatically for you.
- After signing up, you'll receive a success message, then you can sign in.
- Your email and password will be filled automatically for you.
Logging In
- Go to Sign In page.
- From the homepage, click 'Sign in' button.
- From Sign Up page, click the 'Sign in now' link below 'Sign Up' button.
- Input the necessary fields and proceed.
- You can sign in using either email or phone number.
- You can also sign in with your google or facebook account.
Searching for a Show
- Log in and add a profile if you don't already have one or selected a profile.'
- Click the appropriate tab for your search.
- If searching for a movie, click 'Movies' tab in the header.
- If searching for a series, click 'TV Shows' tab in the header.
- Click the search icon on the header.
- Input your search term.
- To go back to browse page, click the 'back' arrow in the left top corner.
Adding User Profile
- Log in to your account.
- Click 'Manage Profiles'.
- Click 'Add Profile'.
- You can only add up to 5 profiles for each account.
- Click the pencil/edit icon and choose your preferred avatar.
- Enter your preferred display name and click 'Save'.
- You can't use avatars and names already used by other profiles in the same account.
Editing User Profile
- Log in to your account.
- Click 'Manage Profiles'.
- Click the profile you wish to edit.
- Modify the profile as you see fit and click 'Save'.
Deleting User Profile
- Log in to your account.
- Click 'Manage Profiles'.
- Click the profile you wish to delete.
- Click 'Delete Profile'.
- Confirm deletion by clicking 'Yes'.
Adrian Li - LinkedIn - xiaxi.li.syd@gmail.com