Skip to content

Commit

Permalink
push the original project
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-karlovskiy committed Dec 20, 2020
1 parent d26798f commit 1d683f2
Show file tree
Hide file tree
Showing 88 changed files with 19,048 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
17 changes: 17 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# FRONTEND_URL
FRONTEND_URL=http://localhost:3000

# API key from the movie db
API_KEY=<api-key>

# API lang
API_LANG=en-US

# API country
API_COUNTRY=GB

# YouTube API key
API_YOUTUBE_KEY=<api-key>

# Google Analytics
GA=UA-000000000-0
25 changes: 25 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module.exports = {
root: true,
env: {
browser: true,
node: true
},
parserOptions: {
parser: 'babel-eslint'
},
extends: [
'@nuxtjs'
],
// add your custom rules here
rules: {
'vue/html-closing-bracket-newline': ['error', {
'singleline': 'never',
'multiline': 'never',
}],
'vue/no-v-html': ['never'],
'comma-dangle': ['error', 'always-multiline'],
'semi': ['error', 'always'],
'space-before-function-paren': ['error', 'always'],
'no-console': ['warn'],
}
}
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# dependencies
node_modules

# logs
npm-debug.log
yarn-error.log

# Nuxt build
.nuxt

# Nuxt generate
dist

# Environment files
.env

# @nuxtjs/pwa
sw.*
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: npm run start
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,24 @@
# nuxt-movies
Nuxt.js Movies

Progressive web app featuring movies and tv shows from [The Movie Database (TMDb)](https://developers.themoviedb.org/3) API. Built using [Vue.js](https://github.com/vuejs/vue) and [Nuxt.js](https://github.com/nuxt/nuxt.js).

Live demo hosted on Heroku can be found at [https://movies.jason.codes](https://movies.jason.codes).

Built as a side project to learn some new skills 🔥🔥

## Quick setup

1. Take a copy of `.env.sample` and re-name to `.env`
2. Get your [TMDb](https://developers.themoviedb.org/3) API key
3. Get your [YouTube](https://developers.google.com/youtube/v3/getting-started) API key (optional, used for video data)
4. Enter the details into the `.env` file

## Running

``` bash
# install dependencies
$ npm install # Or yarn install

# serve with hot reload at localhost:3000
$ npm run dev
```
Loading

0 comments on commit 1d683f2

Please sign in to comment.