Git Product home page Git Product logo

nuhmanp / angular2-node-express-mongo-ngbookstore Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sujeetsharma1980/angular2-node-express-mongo-ngbookstore

0.0 1.0 0.0 25 KB

A sample e-commerce application using Angular 2, Express, Node.js and MongoDB. The project demonstrates how to build both the user section and admin section.

JavaScript 13.02% TypeScript 70.98% HTML 15.20% CSS 0.81%

angular2-node-express-mongo-ngbookstore's Introduction

NgBookStore

This e-commerce Single Page Application project is a built on the MEAN Stack (Mongo, Express, Angular 2, Node) in order to help anyone who is trying to learn how these Javascript technologies work together. It shows how to do CRUD operation with Mongo DB and nested router control for Angular 2.

For simplicy, authentication is not implemented. I will be doing a separate project to demonstrate that feature soon.

User Section

screen shot 2017-01-15 at 11 34 34 pm

screen shot 2017-01-15 at 11 36 23 pm

screen shot 2017-01-15 at 11 50 38 pm

Admin Section

screen shot 2017-01-15 at 11 50 54 pm

screen shot 2017-01-15 at 11 37 45 pm

Development server

Navigate to the project folder and run npm install. Make sure you have mongo installed on your machine or simply do sudo npm install -g mongo and create a local database and a collection called ngBookStore and books respectively.

Creat a database

use ngBookStore

Create a collection

db.createCollection('books')

Run npm install in the backend folder and do node server.js before navigating back to the project folder and run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor. Before running the tests make sure you are serving the app via ng serve.

angular2-node-express-mongo-ngbookstore's People

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.