Go to file
ananyak19 887c0dfbc7 Remove .env and node_modules from tracking, add .gitignore and project setup files
- Remove sensitive .env file from git
- Remove node_modules directory from git
- Add .gitignore for Node.js project
- Add .env.example as template
- Add README.md with setup instructions

Co-Authored-By: Warp <agent@warp.dev>
2026-01-18 18:07:33 +05:30
src first commit 2026-01-18 17:38:57 +05:30
.env.example added gitignore 2026-01-18 18:05:57 +05:30
.gitignore added gitignore 2026-01-18 18:05:57 +05:30
README.md added gitignore 2026-01-18 18:05:57 +05:30
package-lock.json first commit 2026-01-18 17:38:57 +05:30
package.json first commit 2026-01-18 17:38:57 +05:30

README.md

SSAP Backend

Node.js/Express backend for SSAP application with PostgreSQL database.

Prerequisites

  • Node.js (v14 or higher)
  • PostgreSQL database
  • npm or yarn

Setup

  1. Install dependencies:
npm install
  1. Create a .env file based on .env.example:
cp .env.example .env
  1. Update the .env file with your database credentials:
PORT=8080
DATABASE_URL=postgresql://username:password@localhost:5432/database_name

Running the Application

Development mode (with auto-reload):

npm run dev

Production mode:

npm start

The server will start on the port specified in your .env file (default: 8080).

Project Structure

backend/
├── src/           # Source code
├── .env           # Environment variables (not committed)
├── .env.example   # Environment variables template
├── package.json   # Project dependencies
└── README.md      # This file

Technologies

  • Express.js - Web framework
  • PostgreSQL - Database
  • dotenv - Environment variable management
  • CORS - Cross-origin resource sharing
  • express-rate-limit - API rate limiting