Skip to content

Commit 754e5e2

Browse files
author
Flatlogic Bot
committed
Initial commit
0 parents  commit 754e5e2

Some content is hidden

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

55 files changed

+13882
-0
lines changed

.gitignore

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

.prettierrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"singleQuote": true,
3+
"tabWidth": 2,
4+
"trailingComma": "all",
5+
"quoteProps": "as-needed",
6+
"jsxSingleQuote": true,
7+
"bracketSpacing": true,
8+
"bracketSameLine": false,
9+
"arrowParens": "always",
10+
"vueIndentScriptAndStyle": true
11+
}

Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM node:14
2+
3+
# Create app directory
4+
WORKDIR /usr/src/app
5+
6+
# Install app dependencies
7+
# A wildcard is used to ensure both package.json AND package-lock.json are copied
8+
# where available (npm@5+)
9+
COPY package*.json ./
10+
11+
RUN yarn install
12+
# If you are building your code for production
13+
# RUN npm ci --only=production
14+
15+
# Bundle app source
16+
COPY . .
17+
18+
EXPOSE 3000
19+
CMD [ "yarn", "start" ]

README.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# vue material test model
2+
3+
## This project was generated by Flatlogic Platform.
4+
5+
## To start the project:
6+
7+
Install dependencies via yarn
8+
9+
```shell
10+
yarn
11+
```
12+
13+
Run development server
14+
15+
```shell
16+
yarn start:backend
17+
```
18+
19+
## Support
20+
21+
For any additional information please refer to [Flatlogic homepage](https://flatlogic.com).
22+
23+
## To start the project with Docker:
24+
25+
## Description:
26+
27+
The project contains the **docker folder** and the `Dockerfile`.
28+
29+
The `Dockerfile` is used to Deploy the project to Google Cloud.
30+
31+
The **docker folder** contains a couple of helper scripts:
32+
33+
- `docker-compose.yml` (all our services: web, backend, db are described here)
34+
- `start-backend.sh` (starts backend, but only after the database)
35+
- `wait-for-it.sh` (imported from https://github.com/vishnubob/wait-for-it)
36+
37+
> To avoid breaking the application, we recommend you don't edit the following files: everything that includes the **docker folder** and `Dokerfile`.
38+
39+
## Run services:
40+
41+
1. Install docker compose (https://docs.docker.com/compose/install/)
42+
43+
2. Move to `docker` folder. All next steps should be done from this folder.
44+
45+
`cd docker`
46+
47+
3. Make executables from `wait-for-it.sh` and `start-backend.sh`:
48+
49+
`chmod +x start-backend.sh && chmod +x wait-for-it.sh`
50+
51+
4. Download dependend projects for services.
52+
53+
5. Review the docker-compose.yml file. Make sure that all services have Dockerfiles. Only db service doesn't require a Dockerfile.
54+
55+
6. Make sure you have needed ports (see them in `ports`) available on your local machine.
56+
57+
7. Start services:
58+
59+
7.1. With an empty database `rm -rf data && docker-compose up`
60+
61+
7.2. With a stored (from previus runs) database data `docker-compose up`
62+
63+
8. Check http://localhost:3000
64+
65+
9. Stop services:
66+
67+
9.1. Just press `Ctr+C`

babel.config.js

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

package.json

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"name": "vuematerialtestmodel",
3+
"description": "vue material test model - template backend",
4+
"private": true,
5+
"scripts": {
6+
"start": "vue-cli-service serve --port 3000",
7+
"start:backend": "cross-env VUE_APP_BACKEND=true vue-cli-service serve --port 3000",
8+
"build": "cross-env VUE_APP_BACKEND=true vue-cli-service build --dest build",
9+
"lint": "vue-cli-service lint"
10+
},
11+
"dependencies": {
12+
"axios": "^0.26.0",
13+
"core-js": "^3.21.1",
14+
"cross-env": "^7.0.3",
15+
"css-loader": "^5.2.7",
16+
"dayjs": "^1.11.0",
17+
"font-awesome": "^4.7.0",
18+
"jwt-decode": "^3.1.2",
19+
"vue": "^2.6.14",
20+
"vue-cool-lightbox": "^2.7.4",
21+
"vue-router": "^3.5.3",
22+
"vuetify": "^2.6.3",
23+
"vuetify-datetime-picker": "^2.1.1",
24+
"vuex": "^3.6.2"
25+
},
26+
"devDependencies": {
27+
"@vue/cli-plugin-babel": "~4.5.15",
28+
"@vue/cli-plugin-eslint": "~4.5.15",
29+
"@vue/cli-service": "~4.5.15",
30+
"babel-eslint": "^10.1.0",
31+
"eslint": "^6.8.0",
32+
"eslint-plugin-vue": "^6.2.2",
33+
"sass": "^1.49.9",
34+
"sass-loader": "^8.0.2",
35+
"vue-cli-plugin-vuetify": "~2.4.6",
36+
"vue-style-loader": "^4.1.3",
37+
"vue-template-compiler": "^2.6.14",
38+
"vuetify-loader": "^1.7.3"
39+
},
40+
"resolutions": {
41+
"@vue/babel-preset-app/core-js": "^3.21.1"
42+
},
43+
"eslintConfig": {
44+
"root": true,
45+
"env": {
46+
"node": true
47+
},
48+
"extends": [
49+
"plugin:vue/essential",
50+
"eslint:recommended"
51+
],
52+
"parserOptions": {
53+
"parser": "babel-eslint"
54+
},
55+
"rules": {
56+
"vue/no-unused-components": [
57+
"off"
58+
]
59+
}
60+
},
61+
"browserslist": [
62+
"> 1%",
63+
"last 2 versions",
64+
"not dead"
65+
]
66+
}

public/favicon.ico

4.19 KB
Binary file not shown.

public/index.html

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6+
<meta name="referrer" content="no-referrer-when-downgrade" />
7+
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
8+
<meta
9+
name="description"
10+
content="vue material test model was created by Flatlogic generator."
11+
/>
12+
<link rel="icon" href="<%= BASE_URL %>logo.svg" />
13+
<title>vue material test model</title>
14+
<link
15+
rel="stylesheet"
16+
href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900"
17+
/>
18+
<link
19+
rel="stylesheet"
20+
href="https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css"
21+
/>
22+
</head>
23+
<body>
24+
<noscript>
25+
<strong
26+
>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work
27+
properly without JavaScript enabled. Please enable it to
28+
continue.</strong
29+
>
30+
</noscript>
31+
<div id="app"></div>
32+
<!-- built files will be auto injected -->
33+
</body>
34+
</html>

public/logo.png

3.37 KB
Loading

src/App.vue

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<template>
2+
<router-view />
3+
</template>
4+
5+
<script>
6+
export default {
7+
name: 'App',
8+
};
9+
</script>
10+
11+
<style lang="scss">
12+
@import 'styles/base';
13+
14+
@import '~vuetify/src/styles/main.sass';
15+
</style>

0 commit comments

Comments
 (0)