forked from gamahsoft/next-netflix-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bcfb1e6
commit 25ae93d
Showing
3 changed files
with
55 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,63 @@ | ||
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). | ||
# Building a Fullstack Netflix Clone with React, NextJS, TailwindCSS & Prisma | ||
|
||
## Getting Started | ||
![Untitled design (1)](https://user-images.githubusercontent.com/23248726/219093382-a1874751-a2f0-4be6-8bed-3c266276b57c.png) | ||
|
||
First, run the development server: | ||
|
||
```bash | ||
npm run dev | ||
# or | ||
yarn dev | ||
# or | ||
pnpm dev | ||
``` | ||
This is a repository for a FullStack Netflix Clone tutorial using React, NextJS, TailwindCSS & Prisma. | ||
|
||
VIDEO COMING SOON | ||
|
||
Features: | ||
|
||
- Environment, Typescript, NextJS Setup | ||
- MongoDB & Prisma connect, Database creation | ||
- Authentication with NextAuth, Google & Github Login | ||
- Full responsiveness on all pages | ||
- Cookie based authentication | ||
- API and Controllers creation | ||
- Detail-oriented effects and animations using TailwindCSS | ||
- React SWR data fetching | ||
- Zustand state management | ||
|
||
### Prerequisites | ||
|
||
Open [https://localhost:3000](https://localhost:3000) with your browser to see the result. | ||
**Node version 14.x** | ||
|
||
You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file. | ||
### Cloning the repository | ||
|
||
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [https://localhost:3000/api/hello](https://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`. | ||
```shell | ||
git clone https://github.com/AntonioErdeljac/next-netflix-tutorial.git | ||
``` | ||
|
||
### Install packages | ||
|
||
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages. | ||
```shell | ||
npm i | ||
``` | ||
|
||
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. | ||
### Setup .env file | ||
|
||
## Learn More | ||
|
||
To learn more about Next.js, take a look at the following resources: | ||
```js | ||
DATABASE_URL= | ||
GOOGLE_CLIENT_ID= | ||
GOOGLE_CLIENT_SECRET= | ||
GITHUB_ID= | ||
GITHUB_SECRET= | ||
NEXTAUTH_JWT_SECRET= | ||
NEXTAUTH_SECRET= | ||
``` | ||
|
||
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. | ||
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. | ||
### Start the app | ||
|
||
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! | ||
```shell | ||
npm run dev | ||
``` | ||
|
||
## Deploy on Vercel | ||
## Available commands | ||
|
||
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. | ||
Running commands with npm `npm run [command]` | ||
|
||
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. | ||
| command | description | | ||
| :-------------- | :--------------------------------------- | | ||
| `dev` | Starts a development instance of the app | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters