SECURITY ALERT
Developer Tools Detected!
Redirecting in 3 seconds...
+91 73511 00545info@studyfornext.com

Loading Director's Message...

Our Mentors

Our Services

PLACEMENT

100% placement assistance.

INDUSTRIAL-TRAINING

Live project training.

ADMISSION

Direct admission guidance.

PROJECTS

Innovative project support.

Why Study For Next?

CAREER-ORIENTED

Curriculum designed to boost your career.

OFFLINE & ONLINE

Flexible learning modes.

GET CERTIFICATE

Earn recognized certifications.

EXPERT MENTORSHIP

Learn from industry experts.

FREE WORKSHOP

Complimentary skill workshops.

PAID WORKSHOP

Advanced technical workshops.

Our Courses

Mechanical Engineering
Mechanical

Mechanical Engineering

Master the mechanics of machinery and thermodynamics. Design the engines and systems that power the future industry.

View More
Electrical Engineering
Electrical

EEE Engineering

Explore the world of circuits, power systems, and electronics. Innovate with sustainable energy and modern electrical solutions.

View More
CS & IT Engineering
CS & IT

CS & IT Engineering

Code your way to success with full-stack development. Learn AI, software engineering, and the latest tech stacks.

View More
Civil Engineering
Civil

Civil Engineering

Shape the skylines and build the infrastructure of tomorrow. Expertise in structural design, planning, and construction.

View More
Robotics
Robotics

Robotic Courses

Merge hardware and intelligence. Build autonomous systems and learn the future of automation and robotics.

View More
School Courses
School

School Courses

Strong foundations for bright futures. Comprehensive learning modules designed for school-level academic excellence.

View More

Why Choose Us?

  • Expert mentors guiding students toward academic and career success
  • Comprehensive courses designed for practical learning and real results
  • Affordable education platform with updated resources and exam-focused preparation
  • Personality Development

0+

Students

0+

Teachers

0+

Awards

0+

Years

Our Affiliations

Online Book Store Project in MEAN Stack AngularJS MongoDB

Er Yogendra Singh Rajput February 02, 2023

Online Book Store Project in MEAN Stack AngularJS MongoDB

Book Store is a simple single page application (SPA) that lets you buy, rate and leave your comment for all the books that are available in the store. You can also see all of your purchased books history or create your own favorite books list.

Technology Used :

Book Store uses a number of open source projects to work:

  1. MongoDB – Free and open-source cross-platform document-oriented database
  2. Mongoose – Elegant MongoDB object modeling for NodeJS
  3. NodeJS – Evented I/O for the backend
  4. ExpressJS – Fast, unopinionated, minimalist web framework for NodeJS
  5. JSONWebToken – Used for authorization
  6. Angular – Platform that makes it easy to build applications with the web

The goal of this project is to show the core concepts of building SPA with ExpressJS and Angular. In this project I’ve used:

  1. Wrapped each major feature into a module
  2. Lazy-loading for most of the modules so the app can start faster
  3. Preload lazy-loaded modules after the app starts so they can be ready for use as soon as possible
  4. Shared module for compoennts, directives and pipes that can be imported into any feature module
  5. Services for each major feature
  6. Guards to prevent unauthorized users to view routes that require authentication or admin rights
  7. Interceptors for attaching JWT token to the request headers, showing notifications from the server response and error handling
  8. Custom directives
  9. Custom pipes
  10. TypeScript models
  11. Reactive forms for handling user input

Installation Steps

Book Store requires

To start the database (port: 27017): Install MongoDB, open new cmd window (in project root) and run

  1. $ cd server
  2. $ start-mongodb

To add initial seeding: (do this step once only the first time you start the app) After you start MondoDB open new cmd window (in project root) and run

  1. $ cd server
  2. $ seedBooks

To start the server (port: 8000): open new cmd window (in project root) and run

  1. $ cd server
  2. $ npm install (if you havent already installed the dependencies)
  3. $ npm start

To start the client (port: 4200): open new cmd window (in project root) and run

  1. $ cd client
  2. $ npm install (if you havent already installed the dependencies)
  3. $ ng serve

Features :

  1. Anonymous users
    1. Login/Register
    2. View all books
    3. View books details, rating and comments
  2. Authenticated users
    1. Buy books
    2. Rate books
    3. Comment books
    4. View user profiles
    5. View his own purchases history
    6. Create favorite books list
    7. Can change his own avatar
  3. Admin users
    1. Add books to the store
    2. Edit books
    3. Delete books
    4. Edit/Delete offensive user comments
    5. Block/Unblock user from commenting
    6. Change unappropriate user avatars

Download Link

0 Views