- Ampersand.js is yet another framework for building JavaScript applications.
- Ampersand.js is modular in structure and each modules are loosely coupled.
- In this demo,”We will learn to install Ampersand.js and generate a sample Application using Ampersand generator”.
- Ampersand.js can be installed globally using npm install ampersand –g command.The following screenshot shows the terminal with Ampersand.js installation.
- After installation of Ampersand.js globally, We can create a project using ampersand command in the terminal.This command calls the app generator to create a Ampersand based application.During the application structure generation it asks set of question to customize the application configuration.The questions are mainly on framework,projects name and author name.The following screenshot shows the terminal with Ampersand.js generator in execution.
- Now we have to change the working directory to AmpersandDemo and install the dependencies using npm install command.The following screenshot shows the terminal with all the dependencies installation in execution.
- The generated project structure looks like following screenshot:-
- Now we can run the demo application using npm start command.The following screenshot shows the terminal with NPM start in execution.
- The application is running on port 3000.The output of the demo code looks like following screenshot.Now we can work on this generated structure to build our own Ampersand.js based application
- The demo code can be downloaded from the following link:-
https://github.com/saan1984/AmpersandDemo