Code Monkey home page Code Monkey logo

crafts's Introduction

MUN Inc (Made Up Name Incorporated)

This is a laboratory to study REST service creation, testing and deployment using Docker. Work in progress.

REST service will run on port 8080(when run from docker) and will control the data of the clients. Data per customer:

  • Name
  • Last name
  • Date of birth
  • Email
  • Phone number

Usage

The following routes can be accessed when service is running:

  • Route: /client Methods: POST, GET

  • Route: /client/:id Methods: GET, PUT, DELETE

Running from docker

In order to prepare the docker for running this code use the following command in the root directory, docker must be installed in the computer:

docker-compose build

To run all the services inside docker use:

docker-compose up

Running from source

In order to compile and run the program the host computer should have installed mongodb, node and npm. Run the following command in the root directory to install node modules dependencies.

npm install

to run the server use:

node app.js

To run the test cases use:

npm test

Note: database connection could be needing adjusting if run from source, edit app.js file for this.

License

Public domain

crafts's People

Contributors

drianos avatar

Watchers

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