geoseong / hackatalk-server

HackaTalk backend server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HackaTalk Server

CircleCI codecov Build Status PRs Welcome

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

  1. 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`;
    
  2. Start the server

    yarn start
    

    Above will just run the server with migration.

About

HackaTalk backend server

License:GNU General Public License v3.0


Languages

Language:TypeScript 88.0%Language:JavaScript 11.9%Language:Dockerfile 0.1%