Skip to content

Commit 5b8bc9c

Browse files
committed
sync
0 parents  commit 5b8bc9c

File tree

15 files changed

+12362
-0
lines changed

15 files changed

+12362
-0
lines changed

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.DS_Store
2+
node_modules
3+
/dist
4+
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+
pnpm-debug.log*
15+
16+
# Editor directories and files
17+
.idea
18+
.vscode
19+
*.suo
20+
*.ntvs*
21+
*.njsproj
22+
*.sln
23+
*.sw?

Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
# install && build && purne
3+
FROM node:lts-alpine as install-target
4+
ENV PATH $PATH:/app/node_modules/.bin
5+
WORKDIR /app
6+
COPY src ./src
7+
COPY public ./public
8+
COPY babel.config.js package.json package-lock.json ./
9+
RUN npm install
10+
RUN npm run build
11+
12+
# dist
13+
FROM nginx
14+
COPY nginx.conf /etc/nginx/nginx.conf
15+
COPY mime.types /etc/nginx/mime.types
16+
17+
WORKDIR /var/www
18+
COPY --from=install-target /app/dist app

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# hello-world
2+
3+
## Project setup
4+
```
5+
npm install
6+
```
7+
8+
### Compiles and hot-reloads for development
9+
```
10+
npm run serve
11+
```
12+
13+
### Compiles and minifies for production
14+
```
15+
npm run build
16+
```
17+
18+
### Lints and fixes files
19+
```
20+
npm run lint
21+
```
22+
23+
### Customize configuration
24+
See [Configuration Reference](https://cli.vuejs.org/config/).

babel.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
presets: [
3+
'@vue/cli-plugin-babel/preset'
4+
]
5+
}

docker-compose.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: "3.6"
2+
networks:
3+
back:
4+
services:
5+
client:
6+
image: vue-docker-nginx:latest
7+
# environment:
8+
# API_URL: http://api.2mx.org/graphql
9+
ports:
10+
- 3000:80
11+
networks:
12+
- back

mime.types

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
types {
2+
text/html html htm shtml;
3+
text/css css;
4+
text/xml xml;
5+
image/gif gif;
6+
image/jpeg jpeg jpg;
7+
application/javascript js;
8+
application/atom+xml atom;
9+
application/rss+xml rss;
10+
11+
text/mathml mml;
12+
text/plain txt;
13+
text/vnd.sun.j2me.app-descriptor jad;
14+
text/vnd.wap.wml wml;
15+
text/x-component htc;
16+
17+
image/png png;
18+
image/svg+xml svg svgz;
19+
image/tiff tif tiff;
20+
image/vnd.wap.wbmp wbmp;
21+
image/webp webp;
22+
image/x-icon ico;
23+
image/x-jng jng;
24+
image/x-ms-bmp bmp;
25+
26+
font/woff woff;
27+
font/woff2 woff2;
28+
29+
application/java-archive jar war ear;
30+
application/json json;
31+
application/mac-binhex40 hqx;
32+
application/msword doc;
33+
application/pdf pdf;
34+
application/postscript ps eps ai;
35+
application/rtf rtf;
36+
application/vnd.apple.mpegurl m3u8;
37+
application/vnd.google-earth.kml+xml kml;
38+
application/vnd.google-earth.kmz kmz;
39+
application/vnd.ms-excel xls;
40+
application/vnd.ms-fontobject eot;
41+
application/vnd.ms-powerpoint ppt;
42+
application/vnd.oasis.opendocument.graphics odg;
43+
application/vnd.oasis.opendocument.presentation odp;
44+
application/vnd.oasis.opendocument.spreadsheet ods;
45+
application/vnd.oasis.opendocument.text odt;
46+
application/vnd.openxmlformats-officedocument.presentationml.presentation
47+
pptx;
48+
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
49+
xlsx;
50+
application/vnd.openxmlformats-officedocument.wordprocessingml.document
51+
docx;
52+
application/vnd.wap.wmlc wmlc;
53+
application/x-7z-compressed 7z;
54+
application/x-cocoa cco;
55+
application/x-java-archive-diff jardiff;
56+
application/x-java-jnlp-file jnlp;
57+
application/x-makeself run;
58+
application/x-perl pl pm;
59+
application/x-pilot prc pdb;
60+
application/x-rar-compressed rar;
61+
application/x-redhat-package-manager rpm;
62+
application/x-sea sea;
63+
application/x-shockwave-flash swf;
64+
application/x-stuffit sit;
65+
application/x-tcl tcl tk;
66+
application/x-x509-ca-cert der pem crt;
67+
application/x-xpinstall xpi;
68+
application/xhtml+xml xhtml;
69+
application/xspf+xml xspf;
70+
application/zip zip;
71+
72+
application/octet-stream bin exe dll;
73+
application/octet-stream deb;
74+
application/octet-stream dmg;
75+
application/octet-stream iso img;
76+
application/octet-stream msi msp msm;
77+
78+
audio/midi mid midi kar;
79+
audio/mpeg mp3;
80+
audio/ogg ogg;
81+
audio/x-m4a m4a;
82+
audio/x-realaudio ra;
83+
84+
video/3gpp 3gpp 3gp;
85+
video/mp2t ts;
86+
video/mp4 mp4;
87+
video/mpeg mpeg mpg;
88+
video/quicktime mov;
89+
video/webm webm;
90+
video/x-flv flv;
91+
video/x-m4v m4v;
92+
video/x-mng mng;
93+
video/x-ms-asf asx asf;
94+
video/x-ms-wmv wmv;
95+
video/x-msvideo avi;
96+
}

nginx.conf

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
worker_processes 1;
2+
3+
events { worker_connections 1024; }
4+
5+
http {
6+
sendfile on;
7+
include /etc/nginx/mime.types;
8+
9+
server {
10+
listen 80;
11+
12+
root /var/www/app;
13+
index index.html;
14+
15+
location / {
16+
try_files $uri $uri/ /index.html$is_args$args;
17+
}
18+
19+
location ~ ^/api(.*) {
20+
rewrite ^/api/(.*) /$1 break;
21+
proxy_pass https://api.publicapis.org;
22+
}
23+
}
24+
}

0 commit comments

Comments
 (0)