Skip to content

This repository contains a local application for collecting, managing, and displaying drug data, including features for data entry, pagination, and CRUD operations via a RESTful API.

Notifications You must be signed in to change notification settings

ravinhwg/abx-data-ingest

Repository files navigation

Drug Data Collection

A local application for collecting and managing drug data.

Table of Contents

  • Installation
  • Usage
  • Scripts
  • API Endpoints
  • Testing
  • License

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/drug-data-collection.git
    cd drug-data-collection
  2. Install dependencies:

    npm install
  3. Seed the database:

    npm run seed

Usage

  1. Start the server:

    npm start
  2. Open your browser and navigate to http://localhost:3000.

Scripts

  • 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.

API Endpoints

  • 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.

Testing

To run tests, use the following command:

npm test

License

This project is licensed under the MIT License.

About

This repository contains a local application for collecting, managing, and displaying drug data, including features for data entry, pagination, and CRUD operations via a RESTful API.

Resources

Stars

Watchers

Forks

Packages

No packages published