Home of Tv-Series, movies, and communities!
Created with nextjs, firebase, nextauth, and tailwindcss.
My goal was to simulate a professional environment.
- I got my inspiration from this dribble design
- I used feature branches and pull requests
- This is a project I built to learn about testing, and I'm glad I did. I learned a lot about testing and how to write tests.
- I also learned about how to setup Github actions and how to use them to run tests.
- I also learned more about Nextjs, Tailwindcss, and Firebase.
The project is divided into different folders
- lib folder contains all the helper functions
- pages folder contains all the pages
- config folder contains all the configuration files
- modules folder contains all the modules, i.e combination of components
-
Fork the project
-
Clone the project by running
git clone https://github.com/<your-github-username>/oshere.git
-
Go into the project directory
cd oshere
-
Create an
.env
file from the.env.example
file (copy everything in the.env.template
file and put it in the.env
file with appropriate values).NEXTAUTH_SECRET
Just pass anyrandom string
or you can quickly create a good value on the command line via thisopenssl command
.
openssl rand -base64 32
NEXTAUTH_URL
This is the url of your application. If you are running the application locally, it will behttp://localhost:3000
. If you are running the application on a server, it will be the url of your server.
-
Go to the firebase console and create a new project. Then, go to the project settings and copy the firebase config object and paste it in the
.env
file.const config = { apiKey: process.env.YOUR_API_KEY, authDomain: process.env.YOUR_AUTH_DOMAIN, projectId: process.env.YOUR_PROJECT_ID, storageBucket: process.env.YOUR_STORAGE_BUCKET, messagingSenderId: process.env.YOUR_MESSAGING_SENDER_ID, appId: process.env.YOUR_APP_ID, };
-
Install all the dependencies
yarn
First, run the development server:
yarn dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/index.tsx
. The page auto-updates as you edit the file.
API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.ts
.
The pages/api
directory is mapped to /api/*
. Files in this directory are treated as API routes instead of React pages.
This project uses next/font
to automatically optimize and load Inter, a custom Google Font.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.