Skip to content

Olaleye-Blessing/oshere

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OSHERE

Home of Tv-Series, movies, and communities!

Created with nextjs, firebase, nextauth, and tailwindcss.

Live site || Latest release

How I Worked On This Project

My goal was to simulate a professional environment.

Why I Built This Project

  • 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.

How To Navigate This Project

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

Installation steps

  1. Fork the project

  2. Clone the project by running

    git clone https://github.com/<your-github-username>/oshere.git
  3. Go into the project directory

    cd oshere
  4. 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 any random string or you can quickly create a good value on the command line via this openssl command.
    openssl rand -base64 32
    • NEXTAUTH_URL This is the url of your application. If you are running the application locally, it will be http://localhost:3000. If you are running the application on a server, it will be the url of your server.
  5. 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,
    };
  6. Install all the dependencies

    yarn

Getting Started

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.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

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.