Giter Club home page Giter Club logo

backend's Introduction

MedSoft Backend

MedSoft is a website that shows us how to get more information about medicine world. This repository is backend side of the project.

I have tried to use different methods to get data more efficiently. We have worked with approximately 3k+ data. Nearly all the medicine data has 700+ line data. I put some postman request screenshots for examining

Language/Technologies/Libraries

  • Javascript
  • Node JS
  • Express JS
  • body-parser
  • cors
  • dotenv
  • mongodb
  • morgan
  • node-cache
  • nodemon
  • swagger-ui-express
  • yamljs
  • jest
  • mongodb-memory-server
  • mongoose
  • supertest

Install

To download project:

Please clone the project

    git clone https://github.com/drugBankVTYS/backend.git

Then open the folder and run commands below

    cd backend
    npm install 

Before run the project, please make sure you have .env file under backend folder. Please fill the places based on your preferences

    PORT=..... 
    DATABASE=" " 

You are already ready to run project. Run the command:

    npm start

API USAGE

To see API documantation of the project, please go to "http://localhost:${PORT}/api-docs/#/" after you run

Get All Medicines

  GET api/alldrugs

Get a single Medicine

  GET api/singledrug/${id}
Param Type Description
id string Object id of medicine

Get a single Medicine by Name

  GET /api/showdrug?name=${name}
Param Type Description
name string The name of the medicine

Create a Medicine

  POST /api/createdrug
Body Type Description
Medicine Drug A medicine/drug object

Update a Medicine

  PUT /api/updatedrug/${id}
Body Type Description
Medicine Drug A medicine/drug object
Param Type Description
id String The object id of the medicine

Delete a Medicine

  DELETE /api/deletedrug/${id}
Param Type Description
id String The object id of the medicine

Tests

If you want to run test, please make sure you are inside of backend folder. Then run the command:

  npm run test

Screenshots

Get drug by ID

getsingledrug

Get all drugs with page

getalldrugs

Get drug by Name

getdrugbyname

backend's People

Contributors

muhammedsametakgul avatar

Stargazers

İsmail Avcı avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.