Coder Social home page Coder Social logo

dynamic-group-test's Introduction

dynamic-group-tech-test

To run your App with Docker follow the steps below

Setting up Docker

To builds image and start containers

  • RUN in Development mode docker-compose up --build [only use the --build whenever you make changes to Dockerfile or Package.json] else

  • RUN docker-compose up -d [only use the -d flag to run docker container underground]

  • To kill running container(s) docker-compose down

  • To remove image docker rmi [IMAGE_ID] -f

  • To remove multiple images docker rmi -f $(docker images -aq)

  • To access running container docker exec -it [container_id or container_name] bash

To run with node follow the steps below

Technologies Used

  • Backend: Node/Express
  • Database: MongoDb
  • Libraries: Express

To Install

  • Download or clone
  • Open the terminal and cd into the cloned or downloaded folder from the terminal
  • Type npm install to install all dependencies
  • Create a .env file in the root directory then check sample.env to set Environment Variables values

To Run the app

  • npm start to run in production
  • npm run dev to run in development

Features

  • Gets a single item when the item's id is passed
  • Gets all items.

API Endpoints

Endpoint Functionality
GET /v1/getItem/:id Get individual item with item id
GET /v1/getAllItem Get all items
GET /v1/getAllItem?page=2&limit=10 Get all items with paginantion passed
GET / Base route

localhost

  • Base Route [http://localhost:3004/]
  • Get All items [http://localhost:3004/v1/getAllItem]
  • Get individual item [http://localhost:3004/v1/getItem/60ce839fb2e84d0117b1cea]

Remote

Documentation

To access api endpoint

Author

Anjola Adebayo

dynamic-group-test's People

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.