Welcome to the Medicare Backend! This repository contains the backend code for the Medicare Angular Medicine Ecommerce App. The backend is built using Spring Boot and utilizes MySQL as the database.
- To access the live version of the app, visit: Medicare Live Demo
- To access the admin panel use the following credentials : email : malay@gmail.com password : abc123
The Medicare backend provides the following features:
- User Management: Handle user registration, authentication, and profile management.
- Product Management: Manage the catalog of medicines, including CRUD operations for medicines, categories, and brands.
- Order Management: Handle order processing, tracking, and history.
- Authentication and Authorization: Secure endpoints and authorize access to specific resources.
- API Documentation: Well-documented RESTful APIs using Swagger or OpenAPI.
The backend of the Medicare app utilizes the following technologies:
- Java: The primary programming language for developing the Spring Boot application.
- Spring Boot: A powerful framework for building Java applications, providing a convenient and efficient development environment.
- MySQL: A popular relational database management system for storing and retrieving data.
- Spring Data JPA: Simplifies working with databases by providing easy-to-use abstractions and reducing boilerplate code.
- Spring Security: Provides authentication and authorization functionalities to secure the backend APIs.
- JWT: Provides token based authentication and authorization functionalities to secure the backend APIs.
- Swagger or OpenAPI: Generates interactive API documentation to help developers understand and use the APIs.
To set up the Medicare backend locally, follow these steps:
- Clone the repository:
git clone https://github.com/your-username/medicare-backend.git
- Navigate to the project directory:
cd medicare-backend
- Configure the MySQL database connection in the
application.properties
file. - Run the application using your preferred IDE or by executing the command:
./mvnw spring-boot:run
The Medicare backend provides API documentation using Swagger or OpenAPI. After running the backend application locally, you can access the API documentation at the following URL:
To deploy the Medicare backend, follow these steps:
- Set up a MySQL database in your deployment environment.
- Build the backend application using your preferred method (e.g., Maven or Gradle).
- Configure the MySQL database connection in the deployment environment (e.g., using environment variables or application properties).
- Deploy the built application to your preferred server or cloud platform (e.g., Tomcat, AWS, or Heroku).
- Ensure the backend application's base URL is updated in the Angular frontend configuration.
Contributions to the Medicare backend project are welcome! If you encounter any issues or would like to add new features, please follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b my-new-feature
- Make your changes and commit them:
git commit -am 'Add some feature'
- Push the branch:
git push origin my-new-feature
- Submit a pull request explaining your changes.
This project is licensed under the MIT License.
We would like to express our gratitude to the following resources and libraries that contributed to the development of this backend:
Please note that you should replace backend_logo.png
with the actual path or URL to your backend's logo image.