Skip to content

akshat-code21/server

Repository files navigation

server

server TRD

setup

Server

  • Install the dependencies

    npm i
  • create a .env file from .env.example

    cp .env.example .env

Database

Run migrations on the database

npx prisma migrate dev

Seeding data

npx prisma db seed

Running the server

  • Follow the instructions mentioned in setup

  • for development server

    npm run dev
  • for running production build

    npm run build && npm start
  • using Docker

    builidng docker image

    docker build -t <image_name> .

    running docker image

    docker run -e PORT=4000 -p 4000:4000 <image_name>
    
    Note: PORT is an env variable

Running tests

npm run test

Linting

npm run lint

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages