0.0.1-9 • Published 7 years ago

@pojntfx-incubator/microservice-mockups v0.0.1-9

Weekly downloads
1
License
AGPL-3.0
Repository
-
Last release
7 years ago

FDSB Microservices

Start Backend Servers

# GraphQL
json-graphql-server backend/secrets.json   --p 2000  &
json-graphql-server backend/config.json    --p 3000  &
json-graphql-server backend/identity.json  --p 4000  &
json-graphql-server backend/messages.json  --p 5000  &
json-graphql-server backend/documents.json --p 7000  &
# REST
json-server -p 2000 backend/secrets.json &
json-server -p 3000 backend/config.json &
json-server -p 4000 backend/identity.json &
json-server -p 5000 backend/messages.json &
json-server -p 7000 backend/documents.json &

Start Frontend Servers

# Setup
sudo npm i -g create-react-app
# Create 0815 app
create-react-app identity
cd identity
npm i -s semantic-ui-css semantic-ui-react react-router-dom
npm i -S eslint-plugin-react
# Add eslint config
{
  "env": {
    "browser": true,
    "commonjs": true,
    "es6": true,
    "node": true
  },
  "parserOptions": {
    "ecmaFeatures": {
      "jsx": true
    },
    "sourceType": "module"
  },
  "parser": "babel-eslint",
  "rules": {
    "no-const-assign": "warn",
    "no-this-before-super": "warn",
    "no-undef": "warn",
    "no-unreachable": "warn",
    "no-unused-vars": "warn",
    "constructor-super": "warn",
    "valid-typeof": "warn",
    "no-console": "off",
    "react/prop-types": "off"
  },
  "globals": {
    "React": true
  },
  "plugins": ["react"],
  "extends": ["eslint:recommended", "plugin:react/recommended"]
}
npm start
# Go back
cd ..
0.0.1-9

7 years ago

0.0.1-8

7 years ago

0.0.1-7

7 years ago

0.0.1-6

7 years ago

0.0.1-5

7 years ago

0.0.1-4

7 years ago

0.0.1-3

7 years ago

0.0.1-2

7 years ago