Co-authored-by: Jip Frijlink <JipFr@users.noreply.github.com> Co-authored-by: William Oldham <github@binaryoverload.co.uk>
2.7 KiB
Setting up the client
Vercel - Recommended
- Click the Deploy button.
- Sign in using either a GitHub, GitLab, or Bitbucket.
- Follow the instructions to create a repository for movie-web.
- Configure the environment variables:
-
VITE_CORS_PROXY_URL
: Enter your proxy URL here. Make sure to not have a slash at the end of your URL.Example (THIS IS AN EXAMPLE, IT WON'T WORK FOR YOU):
https://test-proxy.test.workers.dev
-
VITE_TMDB_READ_API_KEY
: Enter your TMDB Read Access Token here. Please read below on how to get an API key.
-
- Click "Deploy"
- Congrats! You have your own version of movie-web hosted.
- You may wish to configure a custom domain - Please consult the Vercel docs for how to do this.
Any Static Web Host
-
Download the file
movie-web.zip
from the latest release: https://github.com/movie-web/movie-web/releases/latest. -
Extract the ZIP file so you can edit the files.
-
Open
config.js
in an editor such as Notepad, Visual Studio Code or similar. -
Put your proxy URL in-between the double quotes of
VITE_CORS_PROXY_URL: ""
. Make sure to not have a slash at the end of your URL.Example (THIS IS AN EXAMPLE, IT WON'T WORK FOR YOU):
VITE_CORS_PROXY_URL: "https://test-proxy.test.workers.dev"
-
Put your TMDB Read Access Token inside the quotes of
VITE_TMDB_READ_API_KEY: ""
. Please read below on how to get an API key. -
Save the file.
-
Upload all of the files to a static website hosting such as:
- GitHub Pages
- Netlify
- Vercel
- Etc, there are lots - Google it if the ones above don't work for you.
-
Congrats! You have your own version of movie-web hosted.
TMDB API Key
In order to search for movies and TV shows, we use an API called "The Movie Database" (TMDB). In order for your client to be able to search, you need to generate an API key.
::alert{type="info"} The API key is free, you just need to create an account. ::
- Create an account at https://www.themoviedb.org/signup
- You will be required to verify your email; click the link that you get sent to verify your account.
- Go to https://www.themoviedb.org/settings/api/request to create a developer account.
- Read the terms and conditions and accept them.
- Fill out your details:
- Select "Website" as type of use.
- For the other details can put any values; they are not important.
- Copy the "API Read Access Token" - DO NOT COPY THE API Key - IT WILL NOT WORK