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
- Host: GitHub
- URL: https://github.com/shubhamd99/graphql-sequalize-demo
- Owner: shubhamd99
- Created: 2020-04-05T18:02:50.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T16:54:35.000Z (over 3 years ago)
- Last Synced: 2025-01-09T15:19:28.607Z (over 1 year ago)
- Topics: apollo-server, express, graphql, nodejs, react, server, typescript
- Language: TypeScript
- Homepage:
- Size: 1.36 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
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.
