Git Product home page Git Product logo

node-backend-seed's Introduction

A nice starting point for a restful JSON API that includes:

Getting Started

Before getting started, make sure you have Vagrant installed.

  • Clone this repo: git clone https://github.com/projectweekend/Node-Backend-Seed.git New-Name
  • Change directory: cd New-Name
  • Launch the Vagrant VM: vagrant up
  • SSH into the VM: vagrant ssh
  • Change directory into the project root: cd /vagrant
  • Launch the API app and database containers: docker-compose up

Getting Started Notes

  • The first time you issue the vagrant up commmand the base box for the VM will be downloaded and provisioned automatically according to the project's Vagrantfile. This may take a little while to complete depending on the speed of your network connection. Subsequent launches using vagrant up will run much faster. For more information about other Vagrant commands, check out the documentation.
  • The first time you issue the docker-compose up command the base NodeJS and MongoDB containers will be downloaded from the Docker Registry, according to the project's docker-compose.yml and Dockerfile. This may take a little while to complete depending on the speed of your network connection. Subsequent launches using docker-compose up will run much faster. For more information about Docker Compose, check out the documentation.

Project Organization Notes

  • Use the /routes/index.js file for mapping route handler functions to URLs. This helps keep app.js from getting cluttered.
  • Route handlers, and all the supporting items they require, are defined in /api.
  • Mongoose models related to each handler module are managed in /api/module_name/models.js
  • Simple authentication and signup routes are already active in the seed application. These exist as part of the /api/user module.

node-backend-seed's People

Watchers

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