The Bug Tracker API is a backend API service that provides functionality for managing bugs and issues in software projects. It serves as the backend for the Bug Tracker application, allowing the frontend to interact with the database and perform CRUD operations on projects, issues and tickets.
- Authentication: Handle user authentication and authorization for accessing and manipulating bug data.
- Issues and Tickets Management: Create, retrieve, update, and delete records in the database.
- User Management: Manage user accounts, including registration, login, and profile management.
- Project Management: Associate bugs with specific projects and handle project-related operations.
- API Endpoints: Expose RESTful API endpoints for interacting with bug and project data.
- Nestjs: A nodejs framework to build escalable APIS
- PostgreSQL: A database to store data and logic schemas
- Passport: A middleware for handling user authentication and authorization.
- JWT: JSON Web Tokens for secure authentication and session management.
- Clone the repository:
git clone https://github.com/softEsteban/bugtracker-api.git
- Navigate to the project directory:
cd bugtracker-api
- Install the dependencies:
npm install
ornest start
-
Create a
.env
file in the root directory of the project. -
Define the following environment variables in the
.env
file: #Github APICLIENT_ID
=<client_id>CLIENT_SECRET
=<client_secret>
#Chatgpt API
CHAT_KEY
=<api_akey>
#Mailing and Gmail
-
EMAIL_USER
= -
EMAIL_PASS
= -
CONFIRM_URL
="http://localhost:3000/auth/confirmAccount?email=" -
LOGIN_URL
="http://localhost:4200/login"
#JWT
JWT_SECRET_KEY
=<secret_key>JWT_EXPIRATION
=1d
#Database
DATABASE_HOST
=DATABASE_PORT
=DATABASE_USERNAME
=DATABASE_PASSWORD
=DATABASE_NAME
=mantis
- Start the API server:
npm start
- The API will be accessible at
http://localhost:<port>
, where<port>
is the port number specified in the.env
file.
For detailed information about the available API endpoints and their usage, refer to the API documentation. [Link to API documentation goes here]
Contributions to the Bug Tracker API are welcome! If you encounter any bugs, have feature requests, or want to contribute enhancements, please feel free to submit issues and pull requests.
This project is licensed under the MIT License. See the LICENSE file for more information.
For any inquiries or questions, please contact Your Name.