https://github.com/ammezie/adonis-graphql-server
A GraphQL server built with Apollo server and AdonisJs
https://github.com/ammezie/adonis-graphql-server
adonisjs apollo-server graphql graphql-server
Last synced: about 1 year ago
JSON representation
A GraphQL server built with Apollo server and AdonisJs
- Host: GitHub
- URL: https://github.com/ammezie/adonis-graphql-server
- Owner: ammezie
- Created: 2017-10-23T15:14:16.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-12-09T09:57:02.000Z (over 7 years ago)
- Last Synced: 2025-06-28T17:47:58.595Z (about 1 year ago)
- Topics: adonisjs, apollo-server, graphql, graphql-server
- Language: JavaScript
- Homepage:
- Size: 15.6 KB
- Stars: 32
- Watchers: 4
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# adonis-graphql-server
A GraphQL server built with Apollo server and AdonisJs
## Getting Started
Clone the project repository by running the command below if you use SSH
```bash
git clone git@github.com:ammezie/adonis-graphql-server.git
```
If you use https, use this instead
```bash
git clone https://github.com/ammezie/adonis-graphql-server.git
```
## Setup
Run the command below to install dependencies
```bash
npm install
```
### Environment variables
Duplicate `.env.example` and rename it `.env`
### Migrations
Setup your database and enter the following in `.env`
```
DB_CONNECTION=mysql
DB_HOST=localhost
DB_DATABASE=adonis_graphql_server
DB_USER=root
DB_PASSWORD=
```
Run the following command to run migration.
```bash
adonis migration:run
```
Finally, start the application:
```bash
adonis serve --dev
```
and visit [http://127.0.0.1:3333](http://127.0.0.1:3333) to see the application in action.