Skip to content

Vilen23/UABackend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup Guide for Running the Application

This guide explains how to clone the repository, build the Docker image, and run the image to run the application.

Running With Docker

Clone the Repository

git clone https://github.com/Vilen23/UABackend
cd UABackend

Provide your database

  • make sure to add your db link in .env file
DATABASE_URL="{Your url here}"

Build the docker image

docker build -t your-image-name .

Run the docker image

docker run -p 8000:8000 your-image-name

Note: Ensure Docker is installed on your system before proceeding.

Running Without Docker

Clone the Repo

git clone https://github.com/Vilen23/UABackend
cd UABackend

Instal Dependency

npm install

Add database url

  • In the .env file add your database url
DATABASE_URL="{Your DB url}"

Generate prisma client

npx prisma generate

Compile the src file

tsc -b

Start the server

node dist/index.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published