Skip to content
This repository was archived by the owner on Aug 26, 2024. It is now read-only.

Commit 03a9329

Browse files
committed
Initial commit
0 parents  commit 03a9329

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+33185
-0
lines changed

.env.example

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# API http requests config
2+
VUE_APP_API_SCHEMA=http
3+
VUE_APP_API_BASE=localhost:9002
4+
VUE_APP_API_VERSION=v1
5+
6+
# Discord oauth configs
7+
VUE_APP_API_DISCORD_CLIENT_ID=
8+
VUE_APP_API_DISCORD_REDIRECT_URI=
9+
VUE_APP_API_DISCORD_SCOPES=
10+
11+
# Twitch oauth configs
12+
VUE_APP_API_TWITCH_CLIENT_ID=
13+
VUE_APP_API_TWITCH_REDIRECT_URI=
14+
VUE_APP_API_TWITCH_SCOPES=
15+
16+
# Youtube oauth configs
17+
VUE_APP_API_GOOGLE_CLIENT_ID=
18+
VUE_APP_API_GOOGLE_REDIRECT_URI=
19+
VUE_APP_API_GOOGLE_SCOPES=

.eslintignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
**/*.vue
2+
**/*.js
3+
**/*

.gitignore

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.DS_Store
2+
node_modules
3+
/dist
4+
/.env
5+
6+
# local env files
7+
.env.local
8+
.env.*.local
9+
10+
# Log files
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
15+
# Editor directories and files
16+
.idea
17+
.vscode
18+
*.suo
19+
*.ntvs*
20+
*.njsproj
21+
*.sln
22+
*.sw?

Dockerfile

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
FROM ubuntu
2+
3+
# Update packages and install curl
4+
RUN apt-get update\
5+
&& apt-get install -y curl iputils-ping nano
6+
7+
# Installing caddy
8+
RUN curl https://getcaddy.com | bash -s personal
9+
10+
# Checking caddy version
11+
RUN caddy -version
12+
13+
# Creating work directory
14+
RUN mkdir /movienight.caddy
15+
16+
# Selecting work directory
17+
WORKDIR /movienight.caddy
18+
19+
ADD ./production.caddy .
20+
21+
# Exposing port
22+
EXPOSE 80
23+
EXPOSE 443
24+
25+
# Running project with caddy
26+
CMD ["caddy", "-conf", "/movienight.caddy/production.caddy"]

README.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# HomePi VueJs Project
2+
3+
## Project setup
4+
```
5+
npm install
6+
```
7+
8+
### Compiles and minifies for production
9+
```
10+
npm run build
11+
```
12+
13+
### Building docker image
14+
```
15+
docker build . --tag=homepi-dashboard
16+
```
17+
18+
### Run docker image
19+
```
20+
docker run -dp 80:80 --restart always homepi-dashboard
21+
```
22+
23+
### Customize configuration
24+
See [Configuration Reference](https://cli.vuejs.org/config/).

babel.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
presets: [
3+
'@vue/app'
4+
]
5+
};

development.caddy

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
:80 {
2+
3+
gzip
4+
root /home-pi/dist
5+
6+
rewrite {
7+
regexp .*
8+
to {path} /
9+
}
10+
}

0 commit comments

Comments
 (0)