

Then, run this command in the project directory: $ bower install angularįor more information, refer to these instructions. MEAN is an open source software stack that provides a framework for creating dynamic websites. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement. It is written in PHP and used the MySQL database, all included in the Bitnami Stack. bowerrc in your application with the following content: Trademarks: This software listing is packaged by Bitnami. Create Kafka Topic Kafka also provides a utility to work with topics called kafka-topics.sh which is located at /kafka-training/kafka/bin/kafka-topics.sh. Now let’s create the topic that we will send records on. Var db = can use install AngularJS in your application with Bower. /run-kafka.sh Wait about 30 seconds or so for Kafka to startup. It is already installed in the MEAN stack so you only have to add the following lines to your app.js file: var Mongoose = require('mongoose') To access the application and see its output, browse to. To start the application, use this command: DEBUGsample. You can connect your application with MongoDB using MongooseJS, an object modelling driver for Node.js. To create a new MEAN project, create a new folder for your project and then create a new Express project: mkdir projects cd projects express -view pug sample cd sample npm install. Step 2: Add MongoDB and AngularJS to your MEAN application To access the application and see its output, browse to To end the application, terminate the running Express process.įor more information, refer to these instructions. To start the application, use this command: $ DEBUG=sample:*. To create a new MEAN project, create a new folder for your project and then create a new Express project: $ mkdir projects

So, create a folder called models in the root, and inside the models folder, create a file called Book.js and update it with this: // models/Book.To get started, we suggest the following steps: Our mission is to make awesome software available to everyone, everywhere. In order to interact with our database, we need to create a model for each of our resources. You can create this from the project folder with the command below (on Mac): $ touch app.jsĪpp.get('/', (req, res) => res.send('Hello world!')) Īpp.listen(port, () => console.log(`Server running on port $))

Now create a file named app.js for our entry point.

Nodemon is a utility that will monitor for any changes in your source and automatically restart your server.Īt that point, your package.json should look like this:
