Giter VIP home page Giter VIP logo

loopback-mongo-sandbox's Introduction

Features

  • With this starter project, you can jump straight to writing your business logic.
  • Mongo is setup and configured to work with loopback already.
  • With docker, deploying is as simple as running docker-compose up
  • Reset password mixin is already baked-in.

FAQ

  • Why was this project created?
    • To provide a quick way to experiment with loopback and mongo together.
  • Why use docker?
    • Its not just docker but rather docker-compose alongside it that gives a quick way to bring servers up and get going.
  • Are there other such projects?
  • How can I access loopback once its running?
    • Open your browser to http://localhost:3000/explorer and play around.
  • How can I access mongo once its running?
    • Use mongo shell or RoboMongo or MongoChef or any client you best see fit .. to connect to mongodb://localhost:3001/loopback-mongo-sandbox from your host machine.
  • Why is loopback published on its default port 3000 but mongo is published to a non-default port 3001?
    • Background: Loopback refers to mongo via the url mongodb://mongo:27017/loopback-mongo-sandbox which leverages the mapping created by docker-compose for the mongo service.
    • Answer: If mongo was published on its default port then mongodb://localhost:27017/loopback-mongo-sandbox would also start working as a valid URL within datasources.json and users wouldn't notice a difference. I wanted to discourage that and bring attention to the benefits of referencing a service by name. You won't live on localhost forever, as your code will reach the world one day!

Deploy

Choose one:

  1. Deploy on remote machine with Docker while editing locally

  2. Deploy Locally

    cd ~/dev
    git clone https://github.com/ShoppinPal/loopback-mongo-sandbox.git
    cd ~/dev/loopback-mongo-sandbox
    docker-compose run builder npm install
    docker-compose up
    

loopback-mongo-sandbox's People

Contributors

pulkitsinghal avatar

Watchers

James Cloos 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.