A Node app built with MongoDB and Angular. For demonstration purposes and a tutorial.
Node provides the RESTful API. Angular provides the frontend and accesses the API. MongoDB stores like a hoarder.
- Node and npm
- MongoDB: Make sure you have your own local or remote MongoDB database URI configured in
config/database.js
- Clone the repository:
git clone [email protected]:scotch-io/node-todo
- Install the application:
npm install
- Start the server:
DB_URL="{your mongo connection url}" node server.js
- View in browser at
http://localhost:8080
The following environment variables are used to configure the app:
PORT
The port that the HTTP server listens on. Defaults to 8080. Not considered a sensitive secret.
DB_URL
The MongoDB database connection string. Defaults to mongodb://localhost/meanstacktutorials
. Considered a sensitive secret because it may contain authentication credentials (mongodb://user:password@localhost/meanstacktutorials
).
This repo corresponds to the Node Todo Tutorial Series on scotch.io
Each branch represents a certain tutorial.
- tut1-starter: Creating a Single Page Todo App with Node and Angular
- tut2-organization: Application Organization and Structure
- tut3-services: Controllers and Services
Happy Todo-ing!