juffalow / Express Graphql Example
Licence: mit
Example project how to use Express and GraphQL
Stars: ✭ 163
Programming Languages
typescript
32286 projects
Projects that are alternatives of or similar to Express Graphql Example
Graphjin
GraphJin - Build APIs in 5 minutes with GraphQL. An instant GraphQL to SQL compiler.
Stars: ✭ 1,264 (+675.46%)
Mutual labels: graphql, sql
Razzle Material Ui Styled Example
Razzle Material-UI example with Styled Components using Express with compression
Stars: ✭ 117 (-28.22%)
Mutual labels: express, example-project
Nightcat
个人博客,技术栈:NodeJS + Express + mongoose + GraphQL + Vue 全家桶
Stars: ✭ 97 (-40.49%)
Mutual labels: graphql, express
Rpg Boilerplate
Relay (React), Postgres, and Graphile (GraphQL): A Modern Frontend and API Boilerplate
Stars: ✭ 62 (-61.96%)
Mutual labels: graphql, sql
Apollo Server
🌍 Spec-compliant and production ready JavaScript GraphQL server that lets you develop in a schema-first way. Built for Express, Connect, Hapi, Koa, and more.
Stars: ✭ 12,145 (+7350.92%)
Mutual labels: graphql, express
React Hipstaplate
A ReactJS full-stack boilerplate based on typescript with ssr, custom apollo-server and huge stack of modern utilities which will help you to start your own project
Stars: ✭ 74 (-54.6%)
Mutual labels: graphql, express
Postgraphile
GraphQL is a new way of communicating with your server. It eliminates the problems of over- and under-fetching, incorporates strong data types, has built-in introspection, documentation and deprecation capabilities, and is implemented in many programming languages. This all leads to gloriously low-latency user experiences, better developer experiences, and much increased productivity. Because of all this, GraphQL is typically used as a replacement for (or companion to) RESTful API services.
Stars: ✭ 10,967 (+6628.22%)
Mutual labels: graphql, express
Rdbms To Graphql
A Java CLI program that generates a GraphQL schema from a JDBC data source.
Stars: ✭ 44 (-73.01%)
Mutual labels: graphql, sql
Graphbrainz
A fully-featured GraphQL interface for the MusicBrainz API.
Stars: ✭ 130 (-20.25%)
Mutual labels: graphql, express
Join Monster Graphql Tools Adapter
Use Join Monster to fetch your data with Apollo Server.
Stars: ✭ 130 (-20.25%)
Mutual labels: graphql, sql
Payload
Headless CMS and Application Framework built with Node.js, React and MongoDB
Stars: ✭ 154 (-5.52%)
Mutual labels: graphql, express
Graphql Upload
Middleware and an Upload scalar to add support for GraphQL multipart requests (file uploads via queries and mutations) to various Node.js GraphQL servers.
Stars: ✭ 1,071 (+557.06%)
Mutual labels: graphql, express
Boilerplate Vue Apollo Graphql Mongodb
Start your magical stack journey!
Stars: ✭ 85 (-47.85%)
Mutual labels: graphql, express
Example Auth
User auth, session & JWT example for ReactQL
Stars: ✭ 51 (-68.71%)
Mutual labels: graphql, sql
Porn Vault
💋 Manage your ever-growing porn collection. Using Vue & GraphQL
Stars: ✭ 1,634 (+902.45%)
Mutual labels: graphql, express
Sql To Graphql Schema Generator
⚛️ Generate GraphQL Scheme Online From SQL Query - https://sql-to-graphql.now.sh/
Stars: ✭ 32 (-80.37%)
Mutual labels: graphql, sql
Graphql Apq
🎯 Automatic persisted queries (APQ) for any GraphQL server.
Stars: ✭ 43 (-73.62%)
Mutual labels: graphql, express
Graphql Serverless
GraphQL (incl. a GraphiQL interface) middleware for the webfunc serverless web framework.
Stars: ✭ 124 (-23.93%)
Mutual labels: graphql, express
Next Graphql Blog
🖊 A Blog including a server and a client. Server is built with Node, Express & a customized GraphQL-yoga server. Client is built with React, Next js & Apollo client.
Stars: ✭ 152 (-6.75%)
Mutual labels: graphql, express
Express, GraphQL example
How to run the project
Install dependencies:
yarn
# or using npm
npm install
Create src/config.ts
or rename src/config.example.js
and update file with your credentials:
export default {
port: 3010,
database: {
type: 'mysql',
connection: {
database : '',
host : '',
password : '',
user : '',
},
/*
* Migrations run on every start of the application.
* If you initialized the database manually (from the database.sql file),
* you don't need this.
*/
migrations: {
directory: __dirname + '/migrations',
},
},
};
Run the project:
yarn start
# or using npm
npm start
Open GraphiQL in your browser http://localhost:3010/graphql
Examples
You can find example queries in EXAMPLES.md.
Old version
Here is a link to an old version, that used sequelize
and did not use connections:
Here is a link to older version, that did not use typescript, and used buildSchema
method and graphql schema file:
License
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].