Skip to content
/ api-template Public 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

License

Notifications You must be signed in to change notification settings

droidMakk/api-template

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published