
Security News
Software Engineering Daily Podcast: Feross on AI, Open Source, and Supply Chain Risk
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.
create-ima-app
Advanced tools
Create IMA.js applications easily with simple command.
We have prepared a complex tutorial for you: Your first IMA.js application. This tutorial covers the basics of creating isomorphic web applications using IMA.js, but you will encounter some more advanced concepts in there as well.
For a more in-depth information about the IMA.js see a full documentation and more on imajs.io.
npx create-ima-app my-app
cd my-app
npm run dev
npx comes with npm 5.2+ and higher. For earlier versions simply install create-ima-app globally and continue as before.
npm install -g create-ima-app my-app
create-ima-app my-app
Then open http://localhost:3001/ to see your application. When you're ready to deploy your application, run npm run build to create production-ready minified bundle in build/ directory.
Node >= 8 is required for the installation. You can use nvm to easily manage your local node version. To create new app you can choose one of the following methods based on your preferences.
npm init ima-app my-app
npx create-ima-app my-app
yarn create ima-app my-app
This will install all needed dependencies and create following directory structure inside ./my-app directory.
my-app
βββ LICENSE
βββ README.md
βββ app
βΒ Β βββ assets
βΒ Β βΒ Β βββ less
βΒ Β βΒ Β βββ static
βΒ Β βββ build.js
βΒ Β βββ component
βΒ Β βΒ Β βββ document
βΒ Β βββ config
βΒ Β βΒ Β βββ bind.js
βΒ Β βΒ Β βββ routes.js
βΒ Β βΒ Β βββ services.js
βΒ Β βΒ Β βββ settings.js
βΒ Β βββ environment.js
βΒ Β βββ main.js
βΒ Β βββ page
βΒ Β βββ AbstractPageController.js
βΒ Β βββ error
βΒ Β βββ home
βΒ Β βββ notFound
βββ gulpConfig.js
βββ gulpfile.js
βββ jest.config.json
βββ jest.setup.js
βββ package-lock.json
βββ package.json
βββ server
βββ server.js
Once you've created your new IMA.js project, following commands become available to you through npm.
npm run devTo start development server on http://localhost:3001/. This will also start gulp tasks in watch mode, so any changes you make to the source code are automatically re-builded.
npm run testTo start jest test runners.
npm run lintTo run eslint on your application source files. We've prepared pre-configured .eslintrc.js file which follows our IMA.js coding styles, but feel free to adjust this to your needs.
npm run buildTo build your application.
npm run startTo start IMA.js server.
Developing IMA.js application is fairly easy, but the initial setup process can be quite tiresome. This tool aims to streamline this process, save your time and provide you with buildable application with opinionated defaults that can be easily customized to your needs.
FAQs
Create a IMA.js App easily.
The npm package create-ima-app receives a total of 17 weekly downloads. As such, create-ima-app popularity was classified as not popular.
We found that create-ima-app demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.

Security News
Rustβs crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.