Oncosplice Server
This is a Node.js server for interacting with postgres server.
What does a server do?
- Opens up a port to listen for incoming requests from clients
- Defines what to do with each request that comes in (the server's response).
To initialize this project do the following steps:
-
git clone
-
npm init
-
npm install . (this will install all the dependencies from package.json)
-
To download and install an NPM package into our project,express , we will need to run the following command from your terminal (make sure you are in your project’s root folder when you run this): npm i -s express
-i is a shorthand alias for --install, you can use either. This will add express to a folder called node_modules in your root project folder.
-s is a shorthand alias for --save , you can use either. This is a tag you can add to your npm install command to automatically save it to your package.json.
Make sure you're logged in to the correct vpn, and type http://localhost:8081/api/datasets/cancerdata into Postman's POST request. Use raw json data as input; here's an example you can use. ´{ "data": "GBM" }´