GraphQL-Typescript-Starter
GraphQL-Typescript-Starter copied to clipboard
React Node GraphQL TypeScript - Starter Kit
React Node GraphQL TypeScript - Starter Kit
As I was bootstraping a webapplication I created this starter kit for my use. The technology stack of this kit is collection of all coolatest technologies which I want to use in my web application.
To get started
To get started using the kit follow following steps:
Repo cloning and setup:
- Clone the git repo.
-
cd client
followed byyarn
-
cd server
followed byyarn
DB setup:
-
createuser myuser --password;
-
createdb myapp;
- Connect to the DB
psql myapp
and rungrant all privileges on database myapp to myuser;
Starting development servers:
To start client server in development mode:
-
cd client
-
yarn start
To start server iin development mode:
-
cd server
-
yarn run watch
-
yarn run serve
Libraries used
Following libraries / utilities have been used in the repo:
Client
- ReactJS: 15.6.1
- Typescript: 2.4.2
- TSLint: 5.6.0
- react-apollo: 1.4.14
- react-router: 4.1.2
- styled-components: 2.1.2
- jest: 20.0.3
- enzyme: 2.9.1
- prettier: 1.5.3
Server
- NodeJS: 7.5.0
- Express: 4.15.4
- apollo-server-express: 1.1.0
- Typescript: 2.4.2
- TSLint: 5.6.0
- db-migrate: 0.10.0-beta.23
- graphql-tools: 1.2.1
- prettier: 1.5.3
- mocha: 3.5.0
- chai: 4.1.1
References:
- https://github.com/Microsoft/TypeScript-React-Starter
- https://github.com/Microsoft/TypeScript-Node-Starter
- https://github.com/facebook/jest/blob/master/examples/typescript