Skip to content

This is a sample Graphql backend server written in Typescript. The API defined with type-graphql is served with Apollo server and SqlLite database is used with TypeORM to model data.

License

Notifications You must be signed in to change notification settings

amalsgit/typescript-graphql-apollo-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typescript-Graphql-Apollo-Backend

Introduction

This is a sample Graphql backend server written in Typescript. The API defined with type-graphql is served with Apollo server and SqlLite database is used with TypeORM to model data.

A very basic functionality of CRUD ing a Book entity is described in this repo. A user can create, read, update and delete book using a graphql api.

Installation

Install node

 https://nodejs.org/en/

Install yarn

https://classic.yarnpkg.com/en/docs/install#mac-stable

Install the packages, run the below command in your terminal

yarn

Run the server

To run the server, run the below command in your terminal

yarn start

The graphql-playground client can now be reached at http://localhost:4000

About

This is a sample Graphql backend server written in Typescript. The API defined with type-graphql is served with Apollo server and SqlLite database is used with TypeORM to model data.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published