Skip to content
TG199Public

About

Backend server for an advertising platform

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

# Server - Backend API

Overview

This is the backend server for the ONIT project. It provides RESTful API endpoints for the application.

Tech Stack

  • Node.js
  • Express.js
  • PostgreSQL

Prerequisites

  • Node.js (v14 or higher)
  • npm or yarn
  • Database (MongoDB/PostgreSQL)

Installation

# Install dependencies
npm install

# Create .env file
cp .env.example .env

# Configure environment variables
# Edit .env with your settings

Environment Variables

PORT=5000
DATABASE_URL=your_database_url
JWT_SECRET=your_jwt_secret
NODE_ENV=development

Running the Server

# Development mode
npm run dev

# Production mode
npm start

Project Structure

server/
├── config/         # Configuration files
├── controllers/    # Route controllers
├── db/             # Database
├── docs/           # API docs
├── middleware      # API middleware
├── migrations      # Database migrations
├── routes/         # API routes
├── scripts/        # Startup and restore scripts
├── services/       # API services
├── test/           # Integration test
├── utils/          # Utility functions
└── server.js       # Entry point

Testing

npm test

License

MIT

About

Backend server for an advertising platform

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages