GithubHelp home page GithubHelp logo

garenyondem / crud-mongo Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 84 KB

Node.js RestAPI CRUD operations against MongoDB

TypeScript 90.16% Dockerfile 9.14% Batchfile 0.26% Shell 0.44%
nodejs crud-sample typescript rest-api koa2 mongoose

crud-mongo's Introduction

CRUD Mongo

This is a simple Node.js rest api to demonstrate, create, read, update and delete (CRUD) operations againts a mongodb instance.

Getting started

Make sure you have Node.js v12.18+ and Docker installed.

Pull and run the docker image for mongodb.

$ docker run -d -p 27017:27017 --name mongo-instance mongo

Navigate to projects folder and create a new .env file with similar content as .env.test. Then you are ready to install the application dependencies and start the service.

$ npm i && npm run dist && npm run start

or simply run

$ docker-compose up

If everything goes well you should have a Node.js app with Mongo connection up and running.

You can now test endpoints through Postman link below. Don't forget to replace postId parameter in the URL's though.

Run in Postman

crud-mongo's People

Contributors

garenyondem avatar

Stargazers

 avatar

Watchers

 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.