Code Monkey home page Code Monkey logo

mean-crud-example's Introduction

MEAN CRUD Example

Last Update: 2/2/2018

This program is an example of a CRUD application using the MEAN stack. This project was modified from the original code provided in this article: MEAN Stack (Angular 5) CRUD Web Application Example by Didin J. The GitHub repo for his project can be found here.


Versions

  • MongoDB v3.6.2 (Mongoose v5.0.3)
  • Express v4.16.2
  • Angular v5.2.3
  • Node.js v9.5.0

Cloning the Project for Personal Use

Installation

  1. Clone this repo git clone https://github.com/stanleyeosakul/mean-crud-example.git
  2. cd into the folder of the cloned repo
  3. Run yarn install to install dependencies
  4. Configure your keys file config/keys.js
    • From the root directory, create the keys file touch config/keys.js

    • Enter your mongoURI for MongoDB into keys.js

      module.exports = {
      mongoURI: '<your-mongodb-url-goes-here>',
      };
  5. Start your local MongoDB instance
  6. Choose to run the development or production server
    • Development
      • Front End (Angular)
        • Run ng serve, and navigate to http://localhost:4200/.
      • Back End (MongoDB, Express, Node.js)
        • Run yarn run dev, and navigate to http://localhost:3000/.
    • Production
      • Run yarn run build, and navigate to http://localhost:3000/.

Built-in scripts

  • yarn run dev
    • Builds the Angular project without build optimization into the dist/ folder
    • Runs the server.js node app
  • yarn run build
    • Builds the Angular project into the dist/ folder
    • Runs the server.js node app

Installed Packages

Front-end

Back-end

Development

mean-crud-example's People

Contributors

stanleyeosakul 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.