https://github.com/ohmpatel1997/twitter-graphql
It is a standalone twitter like mock app using Graphql, Golang and MySQL. It is a multiple container dockerized application.
https://github.com/ohmpatel1997/twitter-graphql
database docker docker-compose golang graphql
Last synced: 3 months ago
JSON representation
It is a standalone twitter like mock app using Graphql, Golang and MySQL. It is a multiple container dockerized application.
- Host: GitHub
- URL: https://github.com/ohmpatel1997/twitter-graphql
- Owner: ohmpatel1997
- Created: 2020-07-14T07:01:55.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-16T14:18:40.000Z (almost 6 years ago)
- Last Synced: 2025-10-14T12:46:05.019Z (9 months ago)
- Topics: database, docker, docker-compose, golang, graphql
- Language: Go
- Homepage:
- Size: 43 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# twitter-graphql
Installation
------------
1) Install Mysql in your system. You can find the installation guide here ```https://dev.mysql.com/doc/mysql-osx-excerpt/5.7/en/osx-installation-pkg.html```
2) Set the ```MYSQL_PASSWORD``` and ```MYSQL_ROOT_PASSWORD``` under ```environment:``` in ```docker-compose.yaml``` file
```
database:
environment:
MYSQL_DATABASE: twitter
MYSQL_USER: new-user
MYSQL_PASSWORD:
MYSQL_ROOT_PASSWORD:
```
Running The Application Using Docker Container
-----------------------------------------------
1) Go to root directory. i.e ```twitter-graphql```
2) Execute command ```docker-compose up --build``` in terminal
The command will build the application from Dockerfile. You can eleminate the ```--build``` option to avoid building everytime you run your application.
Testing the GraphQl API
-----------------------
1) Go to ``` http://localhost:8080/``` and enter the Graphql queries and mutations you want to test.
NOTES:
------
1) The above application will bind the GraphQl server to port ```:8080```. Make sure the port is not already binded.
2) Do not run the mySQL server manually. The docker container will automatically start the server and bind the application to it.