First, clone the repository into your local machine:
git clone https://github.com/js-acedevs/solution-hasura.gitor using SSH
git clone git@github.com:js-acedevs/solution-hasura.gitAfter you have a clone of your project into your local machine you are ready to test the project, but first:
cd into the folder
cd solution-hasuraInstall the tools what you need if you doesn't has:
If you have installed them successfully, then you can follow these steps:
- If you have any tools for manage database or you can install TablePlus
- Create a database with this name 'solution_local'
Then if you have completed the previous steps, it is time to execute some commands
Run Hasura GraphQL engine
docker-compose up -dIf executed successfully, you can see if a container named 'solution-hasura' is created in the docker
then run
npm run migrateAnd finally start the hasura console server using the script below
npm startor
yarn start You can visit http://localhost:9695/ to view the hasura console