Skip to content

omorest/Movies-frontend-project

Repository files navigation

Movies-frontend-project

Author: Oscar Moreira Estévez

Project

You can visit the website in the following link:

Movies App TMDB

Run loccaly

If you want to run the project locally you need to follow the next steps

Install dependencies

In root directory, execute:

npm install

Adding API KEY TMDB

  • First of all, you need to create a .env file in the root directory.

  • This .env contain your API KEY of The Movie Database with name VITE_KEY_TMDB.

  • Example

    VITE_KEY_TMDB=xxxxxxxxxxxxxxx
    

Run server

For running the server loccaly you must execute this command in root directory:

npm run dev

Build and preview

If you want to build the project, in root directory execute:

npm run build

Then, you can preview the build with next command:

npm run preview