# Server - Backend API
This is the backend server for the ONIT project. It provides RESTful API endpoints for the application.
- Node.js
- Express.js
- PostgreSQL
- Node.js (v14 or higher)
- npm or yarn
- Database (MongoDB/PostgreSQL)
# Install dependencies
npm install
# Create .env file
cp .env.example .env
# Configure environment variables
# Edit .env with your settingsPORT=5000
DATABASE_URL=your_database_url
JWT_SECRET=your_jwt_secret
NODE_ENV=development
# Development mode
npm run dev
# Production mode
npm startserver/
├── 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
npm testMIT