https://github.com/matheus1lva/challenge
https://github.com/matheus1lva/challenge
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/matheus1lva/challenge
- Owner: matheus1lva
- Created: 2021-07-26T23:53:10.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-29T18:58:35.000Z (almost 4 years ago)
- Last Synced: 2025-02-17T04:28:24.103Z (4 months ago)
- Language: TypeScript
- Size: 146 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# how to run
* yarn install# choose where you will deploy it
If you decide to use a local instance, there is a docker-compose file which you can spin up by doing `docker-compose up -d`!
Now if you decide to use a `hasura.cloud` instance, lets change some parameters on the metadata:
1. Go to: metadata/databases/databases.yaml
2. replace```
connection_info:
database_url:
from_env: HASURA_GRAPHQL_DATABASE_URL
```with
```
connection_info: YOUR_GRAPHQL_DATABASE_URL_CONNECTION
```3. now let`s setup the env (ill assume local env with docker)
> yarn hasura metadata apply --endpoint http://localhost:8080
> yarn hasura migration apply --endpoint http://localhost:8080
> yarn hasura seed apply --endpoint http://localhost:80804. `yarn dev`
5. Go to localhost:3000/ and tadam!