Skip to content

Commit 9501366

Browse files
committed
switch to nuxt
1 parent 8e3a72a commit 9501366

Some content is hidden

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

99 files changed

+10404
-16082
lines changed

.babelrc

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"env": {
3+
"test": {
4+
"presets": [
5+
[
6+
"@babel/preset-env",
7+
{
8+
"targets": {
9+
"node": "current"
10+
}
11+
}
12+
]
13+
]
14+
}
15+
}
16+
}

.editorconfig

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1+
# editorconfig.org
12
root = true
23

34
[*]
45
indent_style = space
56
indent_size = 2
7+
end_of_line = lf
68
charset = utf-8
79
trim_trailing_whitespace = true
8-
insert_final_newline = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

.eslintrc.js

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
browser: true,
5+
node: true
6+
},
7+
parserOptions: {
8+
parser: 'babel-eslint'
9+
},
10+
extends: [
11+
'@nuxtjs',
12+
'plugin:nuxt/recommended'
13+
],
14+
// add your custom rules here
15+
rules: {
16+
'nuxt/no-cjs-in-config': 'off'
17+
}
18+
};

.gitignore

+90
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
# Created by .ignore support plugin (hsz.mobi)
2+
### Node template
3+
# Logs
4+
/logs
5+
*.log
6+
npm-debug.log*
7+
yarn-debug.log*
8+
yarn-error.log*
9+
10+
# Runtime data
11+
pids
12+
*.pid
13+
*.seed
14+
*.pid.lock
15+
16+
# Directory for instrumented libs generated by jscoverage/JSCover
17+
lib-cov
18+
19+
# Coverage directory used by tools like istanbul
20+
coverage
21+
22+
# nyc test coverage
23+
.nyc_output
24+
25+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
26+
.grunt
27+
28+
# Bower dependency directory (https://bower.io/)
29+
bower_components
30+
31+
# node-waf configuration
32+
.lock-wscript
33+
34+
# Compiled binary addons (https://nodejs.org/api/addons.html)
35+
build/Release
36+
37+
# Dependency directories
38+
node_modules/
39+
jspm_packages/
40+
41+
# TypeScript v1 declaration files
42+
typings/
43+
44+
# Optional npm cache directory
45+
.npm
46+
47+
# Optional eslint cache
48+
.eslintcache
49+
50+
# Optional REPL history
51+
.node_repl_history
52+
53+
# Output of 'npm pack'
54+
*.tgz
55+
56+
# Yarn Integrity file
57+
.yarn-integrity
58+
59+
# dotenv environment variables file
60+
.env
61+
62+
# parcel-bundler cache (https://parceljs.org/)
63+
.cache
64+
65+
# next.js build output
66+
.next
67+
68+
# nuxt.js build output
69+
.nuxt
70+
71+
# Nuxt generate
72+
dist
73+
74+
# vuepress build output
75+
.vuepress/dist
76+
77+
# Serverless directories
78+
.serverless
79+
80+
# IDE / Editor
81+
.idea
82+
83+
# Service worker
84+
sw.*
85+
86+
# Mac OSX
87+
.DS_Store
88+
89+
# Vim swap files
90+
*.swp

README.md

+15-12
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
1-
# apiapi (WIP)
1+
# apiapi
22

3-
This is some sort of an api manager, which dynamically combines data from different api's. now the api expects to return data in a set structure, the goal of this project is to structure the returned data dynamically (more "configurable") as well.
3+
> My astonishing Nuxt.js project
44
5-
## TODO
5+
## Build Setup
66

7-
- create system for configurable data return. (now it only returns "iot devices")
8-
- add configurable auth methods for each api
9-
- add bcrypt encryption for stored api keys/uname+pass/etc (when auth methods are implemented)
10-
- add support for data enriching. aka. adding custom fields with constant/path values. (for example: link to data processing statement)
7+
``` bash
8+
# install dependencies
9+
$ npm run install
1110

12-
## DOING
11+
# serve with hot reload at localhost:3000
12+
$ npm run dev
1313

14-
- add crud operations in backend for stored api management
15-
- create an admin panel where you can manage api's.
14+
# build for production and launch server
15+
$ npm run build
16+
$ npm run start
1617

17-
## DONE
18+
# generate static project
19+
$ npm run generate
20+
```
1821

19-
- add redis cache storage per api.
22+
For detailed explanation on how things work, check out [Nuxt.js docs](https://nuxtjs.org).

apiapi.code-workspace

-15
This file was deleted.

assets/README.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# ASSETS
2+
3+
**This directory is not required, you can delete it if you don't want to use it.**
4+
5+
This directory contains your un-compiled assets such as LESS, SASS, or JavaScript.
6+
7+
More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/assets#webpacked).

assets/variables.scss

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Ref: https://github.com/nuxt-community/vuetify-module#customvariables
2+
//
3+
// The variables you want to modify
4+
// $font-size-root: 20px;

backend/.babelrc

-3
This file was deleted.

backend/.eslintignore

-1
This file was deleted.

backend/.eslintrc.js

-12
This file was deleted.

backend/.gitignore

-5
This file was deleted.

backend/README.md

-42
This file was deleted.

backend/app.js

-7
This file was deleted.

0 commit comments

Comments
 (0)