Skip to content

mridula-mahendran/webapp

 
 

Repository files navigation

Web Application

This is a web application built using Node.js and PostgreSQL with Sequelize ORM.

Prerequisites

Before you can build and deploy this application locally, ensure you have the following prerequisites installed:

1. Node.js

  • Ensure you have Node.js installed (preferably the latest LTS version). You can download it from Node.js official website.

    To check if Node.js is installed, run:

    node -v

2. PostgreSQL

  • PostgreSQL must be installed on your local machine or on a server. You can download and install PostgreSQL from PostgreSQL official website

    To check if PostgreSQL is installed, run:

    psql --version

3. Git

  • Git is required for cloning the repository. You can download Git from Git official website.

    To check if Git is installed, run:

    git --version

Build and Deploy Instructions

Step 1: Clone the Repository

Start by cloning the repository to your local machine using the following command:

git clone https://github.com/your-username/your-repository.git
cd your-repository

Step 2: Install Dependencies

Once you’ve cloned the repository, install the required dependencies by running:

npm install

This will install all necessary Node.js packages, including express, sequelize, pg (PostgreSQL client), and others.

Step 3: Set Up the Database

Make sure you have PostgreSQL running on your local machine or server. Then, create a .env file in the root of your project directory (if it does not exist) and add the following environment variables for connecting to PostgreSQL:

# Environment configuration
NODE_ENV=development
PORT=3000
DEV_DATABASE_URL=postgres://<your_username>:<your_password>@127.0.0.1:5432/HealthzDev
TEST_DATABASE_URL=postgres://<your_username>:<your_password>127.0.0.1:5432/HealthzTest
DATABASE_URL=postgres://<your_username>:<your_password>@127.0.0.1:5432/HealthzProduction

Step 4: Start Application

To start the application, run:

npm start

Step 5: Access the Application

Once the server is running you can open your web browser and access the application at:

http://localhost:3000

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 70.9%
  • HCL 23.8%
  • Shell 5.3%