Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stmoreau/tmdb-playground

👌Web App demonstrating TMDB's API 🔥
https://github.com/stmoreau/tmdb-playground

aws-lambda bem-css netlify netlify-lambda react react-context-api

Last synced: 2 days ago
JSON representation

👌Web App demonstrating TMDB's API 🔥

Awesome Lists containing this project

README

        

# TMDB Sample application

This Web App is a demonstration of TMDB's API.

## Prerequisites

- [`node`](https://nodejs.org/en/download/)
- [`npm`](https://www.npmjs.com/get-npm)

## Start the dev server

1. Install the dependencies of the project by running `npm i`
2. You’ll need a [TMDb account](https://www.themoviedb.org/account/signup) to request an API key. Once you are registered, go to account settings and click 'API' in sidebar to get your API key.
3. Run `MOVIE_DB_API_KEY="your_api_key" npm run start:lambda` and in another tab `npm start`
4. Navigate on your browser to `http://localhost:3000/` to see the application
5. The lambda function used can be found locally at `http://localhost:3000/.netlify/functions/getMovies`

## Run tests (WIP)

1. Install the dependencies of the project by running `npm i`
2. Execute the tests by running `npm t`