Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manuelro/koa-graphql-mssql
A project setup using Koa, GraphQL, SQL Server and NextJS.
https://github.com/manuelro/koa-graphql-mssql
Last synced: 2 days ago
JSON representation
A project setup using Koa, GraphQL, SQL Server and NextJS.
- Host: GitHub
- URL: https://github.com/manuelro/koa-graphql-mssql
- Owner: manuelro
- License: mit
- Created: 2020-05-18T04:50:38.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-22T12:10:48.000Z (almost 3 years ago)
- Last Synced: 2023-02-28T03:51:09.465Z (over 1 year ago)
- Language: JavaScript
- Size: 1.33 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GraphQL, Koa, and SQL Server
## Bief
Koa is a quite new framework to create light-weight server-side APIs using the NodeJS runtime. It was created by the team behind Express and leverages asynchronicity, better error handling and more predictive error handling.### About The Workshop
In this workshop we'll be interacting with several virtualization, front and backend technologies and the SQL Server RDBMS.### Technology Stack
|Area|Technology|Tag|Desccription|Commands|
|---|---|---|---|---|
|Virtualization|[Docker](https://www.docker.com)|-|A containerization technology that allows you to virtualize machines based of off images.| **docker pull:** `docker pull mcr.microsoft.com/mssql/server:2019-CU4-ubuntu-16.04`
**docker run:** `docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=' -p 1433:1433 -d mcr.microsoft.com/mssql/server:2019-CU4-ubuntu-16.04`
**docker ps:** `docker ps --all`
**docker stop:** `docker stop `
**docker rm:** `docker rm `|
|Version Control System|[Git](https://git-scm.com)|-|A distributed version control system.|**git clone:** `git clone `
**git tag:** `git tag -n9`
**git checkout:** `git checkout `
|
|Database|[Azure Data Studio](https://docs.microsoft.com/en-us/sql/azure-data-studio/download-azure-data-studio?view=sql-server-ver15), [SQL Server](https://www.microsoft.com/en-us/sql-server/sql-server-2019)|v0.1.0|Azure Data Studio is a MSSQL database client.
SQL Server is a RDBMS created by Microsoft.|-|
|Backend|[Koa](https://koajs.com/), [Nodemon](https://nodemon.io/), [GraphQL](https://graphql.org/)|v0.2.0|Koa is a new framework developed by the Express team and that runs on top of the NodeJS runtime.
Nodemon is a files watcher for server reload at development time.
GraphQL is a graphs based query language that can query multiple sources such as databases, APIs, or documents.|**npm i (from root folder):** `npm i`
**npm i nodemon (from root folder):** `npm i nodemon -g`
**nodemon index.js (from ./server folder):** `nodemon index.js`
|
|Frontend|[NextJS](https://nextjs.org/), [Tailwind](https://tailwindcss.com/)|v0.3.0|NextJS is A JAMSTACK based framework for frontend.
Tailwind is a CSS framework based on functional programming principles.|**npm i (from ./client folder):** `npm i`
**npm run (from ./client folder):** `npm run dev`
|
## Architecture
### Backend
![Koa and GraphQL Architecture](https://raw.githubusercontent.com/manuelro/koa-graphql-mssql/master/assets/arch-backend.png)
## Demos
### Client
![NextJS, TailwindCSS, Koa and GraphQL client](https://github.com/manuelro/koa-graphql-mssql/blob/master/assets/demo-frontend.png?raw=true)
### GraphQL Playground
![NextJS, TailwindCSS, Koa and GraphQL client](https://github.com/manuelro/koa-graphql-mssql/blob/master/assets/demo-backend.png?raw=true)