Browse Source

initial commit

master
Rich Brown 1 year ago
parent
commit
644c87bf45
6 changed files with 6498 additions and 26 deletions
  1. +24
    -0
      .eslintrc.js
  2. +27
    -26
      .gitignore
  3. +6397
    -0
      package-lock.json
  4. +30
    -0
      package.json
  5. +9
    -0
      src/index.js
  6. +11
    -0
      src/router.js

+ 24
- 0
.eslintrc.js View File

@@ -0,0 +1,24 @@
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
extends: 'airbnb',
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: [
'react',
],
rules: {
},
};

+ 27
- 26
.gitignore View File

@@ -32,6 +32,7 @@ bower_components

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
build

# Dependency directories
node_modules/
@@ -60,32 +61,32 @@ typings/


# ---> macOS
*.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
*.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

# ---> VisualStudioCode
.vscode/*


+ 6397
- 0
package-lock.json
File diff suppressed because it is too large
View File


+ 30
- 0
package.json View File

@@ -0,0 +1,30 @@
{
"name": "bart",
"version": "1.0.0",
"description": "test repo",
"main": "index.js",
"scripts": {
"dev": "backpack",
"build": "backpack build",
"start": "npm run build && node ./build/main.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "http://45.33.112.198/rlbrown72/bart.git"
},
"keywords": [],
"author": "RL Brown <rlbrown72@gmail.com> (https://www.rich-text.net)",
"license": "MIT",
"dependencies": {
"backpack-core": "^0.8.3",
"express": "^4.16.4"
},
"devDependencies": {
"eslint": "^5.14.1",
"eslint-config-airbnb": "^17.1.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-jsx-a11y": "^6.2.1",
"eslint-plugin-react": "^7.12.4"
}
}

+ 9
- 0
src/index.js View File

@@ -0,0 +1,9 @@
import express from 'express';
import router from './router';

const app = express();
const port = process.env.PORT || 3123;

app.use(router);

app.listen(port, () => console.log(`on ${port}`)) // eslint-disable-line

+ 11
- 0
src/router.js View File

@@ -0,0 +1,11 @@
import express from 'express';

const router = express.Router();

router.get('/', (req, res) => {
res.json({
msg: 'hello',
});
});

export default router;

Loading…
Cancel
Save