Replaced config w/ dotenv. Hydrate docker nginx using env. Updated readme
This commit is contained in:
75
README.md
75
README.md
@@ -1,45 +1,72 @@
|
||||
# The Movie Database App
|
||||
# Seasoned Request
|
||||
|
||||
A Vue.js project.
|
||||
Seasoned request is frontend vue application for searching, requesting and viewing account watch activity.
|
||||
|
||||

|
||||
|
||||
## Demo
|
||||
|
||||
[TMDB Vue App](https://tmdb-vue-app.herokuapp.com/)
|
||||
|
||||
## Config setup
|
||||
Set seasonedShows api endpoint and/or elastic.
|
||||
- SeasonedShows [can be found here](https://github.com/kevinmidboe/seasonedshows) and is the matching backend to fetch tmdb search results, tmdb lists, request new content, check plex status and lets owner search and add torrents to download.
|
||||
- Elastic is optional and can be used for a instant search feature for all movies and shows registered in tmdb.
|
||||
|
||||
```json
|
||||
{
|
||||
"SEASONED_URL": "http://localhost:31459/api",
|
||||
"ELASTIC_URL": "http://localhost:9200"
|
||||
}
|
||||
```bash
|
||||
# make copy of example environment file
|
||||
cp .env.example .env
|
||||
```
|
||||
*Set ELASTIC_URL to undefined or false to disable*
|
||||
|
||||
## Build Setup
|
||||
```bash
|
||||
# .env sane default values
|
||||
SEASONED_API=
|
||||
ELASTIC=
|
||||
ELASTIC_INDEX=shows,movies
|
||||
SEASONED_DOMAIN=
|
||||
```
|
||||
|
||||
``` bash
|
||||
- Leave SEASONED_API empty to request `/api` from same origin and proxy passed by nginx, set if hosting [seasonedShows backend api](https://github.com/KevinMidboe/seasonedShows) locally.
|
||||
- Elastic is optional and can be used for a instant search feature for all movies and shows registered in tmdb, leave empty to disable.
|
||||
|
||||
```bash
|
||||
# .env example values
|
||||
SEASONED_API=http://localhost:31459
|
||||
ELASTIC=http://localhost:9200
|
||||
ELASTIC_INDEX=shows,movies
|
||||
SEASONED_DOMAIN=request.movie
|
||||
```
|
||||
|
||||
## Build Steps
|
||||
|
||||
```bash
|
||||
# install dependencies
|
||||
npm install
|
||||
yarn
|
||||
|
||||
# serve with hot reload at localhost:8080
|
||||
npm run dev
|
||||
# build vue project using webpack
|
||||
yarn build
|
||||
|
||||
# build for production with minification
|
||||
npm run build
|
||||
# test or host built files using docker, might require sudo:
|
||||
docker build -t seasoned .
|
||||
docker run -d -p 5000:5000 --name seasoned-request --env-file .env seasoned
|
||||
```
|
||||
|
||||
For detailed explanation on how things work, consult the [docs for vue-loader](http://vuejs.github.io/vue-loader).
|
||||
This app uses [history mode](https://router.vuejs.org/en/essentials/history-mode.html)
|
||||
## Development Steps
|
||||
|
||||
```bash
|
||||
# serve project with hot reloading at localhost:8080
|
||||
yarn dev
|
||||
```
|
||||
|
||||
To proxy requests to `/api` either update `SEASONED_API` in `.env` or run set environment variable, e.g.:
|
||||
|
||||
```bash
|
||||
# export and run
|
||||
export SEASONED_API=http://localhost:31459
|
||||
yarn dev
|
||||
|
||||
# or run with environment variable inline
|
||||
SEASONED_API=http://localhost:31459 yarn dev
|
||||
```
|
||||
|
||||
## Documentation
|
||||
|
||||
All api functions are documented in `/docs` and [found here](docs/api.md).
|
||||
[html version also available](http://htmlpreview.github.io/?https://github.com/KevinMidboe/seasoned/blob/release/v2/docs/api/index.html)
|
||||
|
||||
## License
|
||||
|
||||
[MIT](https://github.com/dmtrbrl/tmdb-app/blob/master/LICENSE)
|
||||
|
||||
Reference in New Issue
Block a user