A local application for collecting and managing drug data.
- Installation
- Usage
- Scripts
- API Endpoints
- Testing
- License
-
Clone the repository:
git clone https://github.com/yourusername/drug-data-collection.git cd drug-data-collection
-
Install dependencies:
npm install
-
Seed the database:
npm run seed
-
Start the server:
npm start
-
Open your browser and navigate to
http://localhost:3000
.
npm start
: Start the server.npm run dev
: Start the server in development mode with nodemon.npm run seed
: Seed the database.npm test
: Run tests with coverage.npm run build:ncc
: Build the project using ncc.npm run build:pkg
: Package the application.npm run clean
: Clean the dist.
- POST /api/save-data: Save new data.
- GET /api/get-data: Fetch paginated data.
- PUT /api/update-data/:id: Update data by ID.
- DELETE /api/delete-data/:id: Delete data by ID.
To run tests, use the following command:
npm test
This project is licensed under the MIT License.