项目作者: miquelromero

项目描述 :
Vue.js + ApolloGraphQL CRUD example
高级语言: Vue
项目地址: git://github.com/miquelromero/vue-apollo-airlines-crud.git
创建时间: 2019-08-24T15:45:53Z
项目社区:https://github.com/miquelromero/vue-apollo-airlines-crud

开源协议:

下载


airlines-crud

This is just a Vue.js + GraphQL crud for testing purposes. Includes both client (vue-apollo) and server (apollo-server).

Quick setup

  1. npm install

In order to have everything up and running in development mode, you need to build and start both client and server.

  1. npm run apollo
  2. npm run serve

Then you will have your server running at:

  1. http://localhost:4000/graphql/

And your client at:

  1. http://localhost:8080/

Server

Compiles and hot-reloads for development

  1. npm run apollo

Compiles and hot-reloads for production

  1. npm run apollo:start

Client

Compiles and hot-reloads for development

  1. npm run serve

Compiles and hot-reloads for development

  1. npm run serve

Compiles and minifies for production

  1. npm run build

Run your tests

  1. npm run test

Lints and fixes files

  1. npm run lint

Run your end-to-end tests

Before running end-to-end tests you need to have apollo server running

  1. npm run test:e2e

Run your unit tests

No units yet

  1. npm run test:unit