droidMakk / api-template

Express with typescript based api template. Which uses rollup for transpiling code and liquibase to track schema changes. postgresql as database and postgraphile to use graphql for queries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API TEMPLATE

API server with express and rollup for bundling. Using optional typechecking using Typescript.

To clone this repo

npx degit droidmakk/api-template

BOOTSTRAP DATABASE

-- create database
create database your-app-dev;

-- create user
create user dbadmin with password 'some-password';

-- grant access
grant select, update, delete on all tables in schema public to dbadmin;

-- restrict access
revoke select, update, delete on table users from dbadmin;

 -- reset password
 alter user dbadmin with password 'some-other-password';

MACHINE SETUP

install the following in machine.

  • postgresql > 8.x
  • nodejs > 8.x
  • npm > 3.x

About

Express with typescript based api template. Which uses rollup for transpiling code and liquibase to track schema changes. postgresql as database and postgraphile to use graphql for queries

License:MIT License


Languages

Language:TypeScript 89.9%Language:JavaScript 8.2%Language:Dockerfile 1.9%