/jv-server

API for Just Vote system

Primary LanguageTypeScript

API for Just Vote

This repository contains all the server logic for jv-client

Running the server

  • Copy sample.env to .env and fill the environment variables

  • # install all the dependancies
    $ yarn install
    
    # start the development server
    $ yarn start:dev
      
    # start the production server
    $ yarn start:prod
    
  • From Docker image

    • $ docker pull ghcr.io/hrahul2605/jv-server:latest
    • Run the image providing the .env file to the image.

Running Migrations

# generate the migration
yarn migration:generate MIGRATION_NAME

# migrate
yarn migrate