Skip to content

vue-element-admin (frontend) + postgraphile (graphql backend)

Notifications You must be signed in to change notification settings

furqon/graphile-element

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

graphile-element

This is sample of admin vue-element-admin using postgraphile as backend instead of mockup. Only part of login that using graphile, the rest is left for your exercises :)

For this purpose, I only request query without using any mutations. Postgraphile can saves you a lot of time in doing backend chores. All graphql request is using vue-apollo.

Installation

Clone this repo

git clone https://github.com/furqon/graphile-element.git
cd graphile-element

Backend

before seting up backend, you have to install database in postgresql and setup the .env (edit as you setup db). Im using yarn, you can use npm.

cd server
cp .env.example .env
yarn install

get the database schema to your db

psql yourdb < provision.sql

start the server

yarn start

You can play the server by accessing http:https://localhost:5000/graphiql

Frontend / Client

cd client
yarn install
yarn dev

You can test to login using username: [email protected] password: admin

Thank You

apps site
postgraphile [https://www.graphile.org/]
vue-element-admin [https://github.com/PanJiaChen/vue-element-admin]
element-ui [https://element.eleme.io/#/en-US]
vue-apollo [https://apollo.vuejs.org/]

resources

a very very good video from @benjie about postgrapile (https://www.youtube.com/watch?v=eDZO8z1qw3k)

About

vue-element-admin (frontend) + postgraphile (graphql backend)

Resources

Stars

Watchers

Forks