/vue-type-graphql-example

Book management system with NodeJS & TypeScript & GraphQL & Vue

Primary LanguageTypeScript

Waffle.io - Columns and their card count Greenkeeper badge

Book Management System.

  • Author : Seolhun
  • Date : 2017.10.19

Used Stacks

  1. TypeScript
  2. NodeJS, Express
  3. Vue-Cli
  4. GraphQL
  5. Apollo Client
  6. Sequelize

Commit Convention

  • Server : [Server] - Contents
  • Client : [Cient] - Contents
  • Android : [Android] - Contents
  • Contents
    • GraphQL
    • Vue
    • Test
    • ...

How to run

Install

$ yarn install

Server

  • Run all packages
$ yarn all
  • Docker
docker-compose up -d
  • NPM scripts
$ yarn adev

http://localhost:4000/graphql

DB

1.Create Default database using Raw SQL.

  • /src/config/db/default.sql
  1. Set Database configuration.
  • /server/src/config/database/index.ts
  1. Set Sync Database config
  • sequelize.sync() - create & update
  • sequelize.sync({force: true}) - create & drop

Client

$ yarn adev

http://localhost:7000/

Reference