Follow steps below to run application locally
Live example at itsankush.com
Pre-requisites
You will need a TMDB api key from
https://developers.themoviedb.org/3/getting-started/introduction
Set up a local mysql server
npm i from root folder
Uncomment the .env.example file to simply .env then fill in the required keys
Example
TTL=3600
MAX_KEYS=50
JWT_SECRET=mysecret
JWT_EXPIRES_IN=86400
VUE_APP_BASE_URI='http://localhost:3000' if your is server ruunning on that port
npm run build
npm run migrate
npm run start and go on localhost:3000 on a browser
example endpoint:
localhost:3000/api/movies/search/{{query}}
Search is disabled for guest, you need to login/have an account to be able to search
From root folder
Do npm test to test with jest