GithubHelp home page GithubHelp logo

andrewjbateman / mean-stack-app Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 4.33 MB

:clipboard: App using an Angular frontend to Create, Read, Update & Delete (CRUD) data from a Node.js backend server database.

License: MIT License

JavaScript 24.59% TypeScript 63.19% HTML 10.46% CSS 1.76%
express-middleware mongodb nodejs full-stack typescript css3 html5 angular angular12

mean-stack-app's Introduction

⚑ Mean Full Stack App

  • Mongo Express Angular Node (MEAN) full-stack app, integrates an Angular frontend with a Node.js backend.
  • Note: to open web links in a new window use: ctrl+click on link

GitHub repo size GitHub pull requests GitHub Repo stars GitHub last commit

πŸ“„ Table of contents

πŸ“š General info

  • includes signup and login forms
  • user id and post details stored in MongoDB cloud Atlas database
  • full Create Read Update and Delete (CRUD) database functionality
  • uses the Angular canActive interface as a guard deciding if a route can be activated
  • The error component is an Entry component but since 9.0.0 with Ivy, the entryComponents property is no longer necessary. See deprecations guide.

πŸ“· Screenshots

Example screenshot

πŸ“Ά Technologies

πŸ’Ύ Frontend & Backend Setup

  • Install dependencies using npm i
  • Backend: Add database access string to backend/app.js CONNECTION_URL then run nodemon server.js to start server
  • Frontend: Run ng serve for a dev server then navigate to http://localhost:4200/.
  • 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.

πŸ’» Code Examples

  • extract from error-interceptor.ts
// intercept method; attached to every outgoing http request
  intercept(req: HttpRequest<any>, next: HttpHandler) {
    return next.handle(req).pipe(
      catchError((error: HttpErrorResponse) => {
        let errorMessage = 'An unknown error occured';
        if (error.error.message) {
          errorMessage = error.error.message;
          this.dialog.open(ErrorComponent, { data: { message: errorMessage } });
        }
        return throwError(error);
      })
    );
  }

πŸ†’ Features

  • Spinner is displayed while data loading, controlled by a boolean valuexΒΊ

πŸ“‹ Status & To-Do List

  • Status: Incomplete. Backend connects to database and frontend displays login page. Sign-up and Login not working. Update or replace.
  • To-Do: Show add post form

πŸ‘ Inspiration

πŸ“ License

  • This project is licensed under the terms of the MIT license.

βœ‰οΈ Contact

mean-stack-app's People

Contributors

andrewjbateman avatar

Stargazers

Ola Stephen Onuh avatar

Watchers

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