Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 815 Bytes

README.md

File metadata and controls

38 lines (25 loc) · 815 Bytes

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