HackaTalk Server
Specification
Setup Dev env
- Create user in local mysql server account.
- Give appropriate name to
dev.env
.DB_CONNECTOR=postgres DB_HOST=localhost DB_USER=postgres DB_DATABASE=hackatalk DB_PORT=5432 DB_PASSWORD=dooboolab0!
Test Apis
Test Graphql Apis
Migration
yarn migrate
Running in local environment
-
Create postgres database and give privileges (You can use
mysql
if you wish)CREATE DATABASE hackatalk; CREATE ROLE `postgres` WITH LOGIN NOSUPERUSER INHERIT CREATEDB NOCREATEROLE NOREPLICATION PASSWORD 'dooboolab0!'; GRANT CONNECT ON DATABASE `hackatalk` TO `postgres`; GRANT ALL PRIVILEGES ON DATABASE `hackatalk` TO `postgres`;
-
Start the server
yarn start
Above will just run the server with migration.