Funny Movies is a movie sharing site. You can register an account and share movies you like instantly. All your shared movies will be listed in the homepage.
- User registration and login
- YouTube video sharing (youtube.com and youtu.be URL formats)
- Shared videos listing
- Basic light/dark theme support based on browser selected theme
- Responsive layout
- This project was developed under WSL2 (Ubuntu LTS 22.04) but may work on macOS and Windows
- Node.js version >= 18 (LTS preferred)
- A free RapidAPI account
Clone this repository
git clone git@github.com:hlqviet/remitano.git
Install dependencies
npm install
Install playwright
if you want to run end-to-end tests
npx playwright install --with-deps chromium
- Register a RapidAPI account at https://rapidapi.com/auth/sign-up, subscribe to this API: https://rapidapi.com/ytjar/api/yt-api and get your API key
- Copy
.env.example
to.env.local
- Fill in
RAPIDAPI_API_KEY
with your API key
To run the application in development mode, run the following command and access it at http://localhost:3000
:
npm run dev
For production build, run the following commands:
npm run build
npm start
Unit tests will be executed with jest
and react-testing-library
. End-to-end tests will be executed with cucumber-js
and playwright
.
For unit testing, run the following command:
npm run test
For end-to-end testing, run the production build commands and this one:
npm run test:e2e
This project was bootstrapped with Next.js so it can be deployed to Vercel with ease.
You need to register for an account first. Enter your credentials, the account will be created if it does not exist, else you will be logged in.
You can then access the movie sharing page. Only YouTube videos are supported for now.
The video will be added to the homepage after it is shared.
The site is also available in dark theme, depending on your browser theme.
The live app can be accessed through these domains:
- https://remitano.huynhviet.com/ - Cloudflare CDN
- https://remitano-three.vercel.app/ - Vercel CDN
- Double-check your Node.js version if you encounter any issue installing or running the application.
playwright
installation requiressudo
due to the dependencies. You can install them yourself by following the instructions in this comment.- Make sure you have
RAPIDAPI_API_KEY
if you cannot share a movie.