This repository contains the backend server for the Buddies Inn Project, built with Node.js and Express.
The Buddies Inn backend provides the core server-side logic, database integration, and RESTful APIs needed to power the Buddies Inn application.
- RESTful API built with Express.js
- User authentication and authorization (planned)
- Database integration (planned)
- Node.js (v18 or higher recommended)
- npm or yarn
-
Clone the repository:
git clone https://github.com/SWE-Alpha/backend.git cd backend -
Install dependencies:
npm install
-
Create a
.envfile in the root of the backend directory with this template:# Server Configuration PORT= NODE_ENV= # Database Configuration DATABASE_URL= # JWT Configuration (add when implementing auth) JWT_SECRET=
PORT: The port your server will run on (default: 5000).NODE_ENV: Set todevelopmentorproduction.DATABASE_URL: (Optional) Your database connection string.JWT_SECRET: (Optional) Secret key for JWT authentication.
Never commit your
.envfile to version control. -
Start the development server:
npm run dev