This is the backend for a reports system built using Express.js and PostgreSQL. This system provides APIs to manage reports, users, authentication, and authorization.
Before you begin, ensure you have met the following requirements:
- Node.js installed on your local machine.
- PostgreSQL installed and running on your local machine.
- A code editor such as Visual Studio Code or Sublime Text.
-
Clone the repository:
git clone https://github.com/omaressam0858/Reports-Backend.git
-
Navigate into the project directory:
cd Reports-Backend
-
Install dependencies:
npm install
-
Create a
.env
file in the root directory of the project. -
Add the following environment variables to the
.env
file:-DATABASE_URL=postgresql://username:password@localhost:5432/reportsdb -JWT_SECRET=your_jwt_secret
To start the server, run the following command:
npm run start
Contributions are welcome! Feel free to submit pull requests or open issues.
This project is licensed under the MIT License - see the LICENSE file for details.
Once the server is running, you can start making requests to the API endpoints using tools like Postman or directly from your frontend application.