Skip to content

anwk/viomedo-challenge-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Viomedo application server

REST API for handle trial application data for a specific clinical trial.

Application uses mysql. You need to have installed mysql.

Endpoints

Application Resources

GET /api/applications - return list of all applications

GET /api/applications/:id - return application by given id

POST /api/applications/:id - create application

PUT /api/applications/:id - update application

DELETE /api/applications/:id - delete application

Get Started

Clone:

$ git clone https://anwk/viomedo-challenge-server

Install:

$ cd viomedo-challenge-server
$ npm install

Run for project:

Before run project you to create 'viomedo' database. From the app root directory run:

    mysql -uroot -p < ./src/database.sql

It will ask for mysql 'root' user password and create 'viomedo' with applications table. Use ./src/server/config.json file to configure connection for app.

$ npm start

Run test:

$ npm test

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published