Stocks-GraphQL
GraphQL API to retrieve Historical Stocks data from DynamoDB
Features:
! API can only be accessed on the GraphQL playground GUI
Environment Variables
PORT
// PORT to run your application
AWS_ACCESS_TOKEN
// Your AWS Access Token
AWS_SECRET
// your AWS Secret
REDIS_ADDRESS
<host_name>:<port_name>
To Run the project:
- Install and setup Go
go mod download
to download the requirements
go mod vendor
to download to local reposistory
- Start the application:
go run main.go
Local Endpoint: localhost:8080
To deploy on App Engine:
Follow Instructions from official website: https://cloud.google.com/appengine/docs/standard/go/building-app
app.yaml:
runtime: go113
env_variables:
PORT: <port>
CALLBACK_URL: https://graphql-project-278000.ue.r.appspot.com/callback
GOOGLE_CLIENT_ID: <google_client_id>
GOOGLE_CLIENT_SECRET:<google_client_secret>
AWS_ACCESS_TOKEN: <aws_access_token>
AWS_SECRET: <aws_secret>
REDIS_ADDRESS: <redis_address_with_port>
REDIS_PASS: <redis_password>