An open API service indexing awesome lists of open source software.

https://github.com/shubhamd99/graphql-sequalize-demo

GraphQL Sequalize
https://github.com/shubhamd99/graphql-sequalize-demo

apollo-server express graphql nodejs react server typescript

Last synced: 3 months ago
JSON representation

GraphQL Sequalize

Awesome Lists containing this project

README

          

#### GraphQL Sequalize

```
npx gitignore node
```

#### Getting the database setup
* yarn will install all necessary Node dependencies.

* You will need Docker in order to install a containerised MySQL dev environment. After getting docker, run the following command anywhere:

```
docker run \
-p 0.0.0.0:7999:3306 \
--name gsd-db \
-e MYSQL_ROOT_PASSWORD=password \
-e MYSQL_USER=gsd-dev \
-e MYSQL_PASSWORD=password \
-e MYSQL_DATABASE=gsd \
-d mysql:5.7.20
```
```
npm run db:migrate
```

* This will create a Docker instance called `gsd-db`, running MySQL v5.7.20, with the root password being `password`. It also creates a database called `gsd`, creates a user called `gsd-dev` (with password `password`), and assigns that user full permissions onto the `gsd` database.

![alt grapql](https://i.imgur.com/TrUKdqE.png)