paigetech / connecticut

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

##App tree

Boilerplate

-app
--models
---thing.js (can be changed to whatever object you need to save to DB)
---user.js (used for authentication with Passport.js. It uses email+password)
--routes.js (all the epxress routing: api calls for creating, deleting, updating, retrieving Things and managing signup, login, lougout and check loggedin status)

-config
--database.js (mongodb URI)
--passport.js (all the Passport.js authentication code)

-public
--css
---stylesheet.css
--img
--js
---home
----controllers
-----HomeController.js
----views
-----home.html
---index
----controllers
-----IndexController.js
---Users
----controllers
-----LoginController.js
-----SignupController.js
----views
-----login.html
-----signup.html
---app.js (angular routing and service for the User global object)
--views
---home.html (Home view)
---login.html (Login view)
---signup (Signup view)
--index.html (Main Index view)

-package.json
-Procfile (for Heroku deployment)
-README.md (it's me!)
-server.js (setting up the express server)

##Getting Started

  1. Install MongoDB, Express, Node.js and git on your machine
  2. Run "npm install"
  3. Run the server with "node server.js"
  4. Wait to see the following in you command line "App listening on port 8080"
  5. Open your browser and go here to see it live

##Git Workflow There are three main branches, develop, test, production You should have a copy of develop locally which you will use to fork your feature branches out of. Once you have finished a feature, first pull the develop branch down, then merge in your feature branch and create a pull request.

About


Languages

Language:JavaScript 51.2%Language:HTML 42.9%Language:CSS 5.9%