- Create: Through AxmedRx's intuitive interface, user can easily create new entries of medicines.
- Read: User can access comprehensive information about available medicines.
- Update: User can update the details of existing medicines, such as dose, unit and other relevant information.
- Delete: User have option to delete the medicines which are no longer available.
Screencast.from.08-05-24.11_51_01.AM.IST.webm
- CURD URL: http://localhost:8000/medications/
-
POST /medications:
- request:
{ "name": "string", "dose": "integer", "presentation": "string", "unit": "integer", "countries": ["integer"] }
- response with 201 status code:
{ "id": "integer", "name": "string", "dose": "integer", "presentation": "string", "unit": "integer", "countries": [ { "id": "integer", "name": "string" } ] }
-
GET /medications:
- response:
{ "medications": [ { "id": "integer", "name": "string", "dose": "integer", "presentation": "string", "unit": "integer", "countries": [ { "id": "integer", "name": "string" } ] } ], "countries": [ { "id": "integer", "name": "string" } ] }
-
Neccessary Requirements:
- Node.js 12.x or higher
- npm or yarn
- Python 3.8 or higher
- Django 3.2 or higher
- Django Rest Framework
-
Backend: Django REST API
-
Frontend: React with Next.js
-
Database: SQLite3
- Clone the repository.
- Navigate to the backend directory.
- Install dependencies from requirements.txt.
- Run migrations:
python manage.py migrate
. - Create a superuser:
python manage.py createsuperuser
. - Run the development server:
python manage.py runserver
.
Backend is available on localhost:8000
- Clone the repository.
- Navigate to the frontend directory.
- Install dependencies using
npm install
oryarn install
. - Run the development server:
npm run dev
oryarn dev
.
Now the user can see the UI on localhost:3000
- Enhanced Security Measures: Implement authentication and authorization to secure access to the APIs.
- API Versioning: Introduce API versioning to help manage changes and ensure backward compatibility.
- Containerization: Dockerize the application to simplify deployment and scaling across different environments.
- Unit and Integration Testing: Increase the coverage of unit and integration tests to ensure robustness and reliability of the application.
- API Documentation: Use tools like Swagger or Redoc to generate interactive API documentation that can help developers understand and use the APIs more effectively.