Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
##About##
Icecream is a rapid web framework based on NodeJS. It was designed with a very small footprint for those who need a simple, elegant and pragmatic toolkit to build high-performing, full-featured web applications.
the source code is hosted on github.com and licensed under the MIT license.
any question about icecream, please feel free to contact zhengzhiyu@yeah.net
##How to use##
####install nodejs####
####create your application####
open a shell prompt and type the following command
mkdir myApp
cd myApp
create application folders
mkdir app
mkdir app/controllers
mkdir app/views
mkdir app/views/layout
mkdir app/views/page
####add icecream to the application####
add icecream module to your working directory
cd myApp/app
npm install icecream
####add files to the application####
create the main file start.js in directory 'myApp/'
var icecream = require('icecream');
icecream.createServer();
icecream.set("appDir", __dirname +'/app');
icecream.listen(3000);
create controller file page.js in directory 'myApp/app/controllers/'.
action('index', function(){
var data = {
name: 'icecream',
introduction: 'Icecream is a rapid web framework based on NodeJS. It was designed with a very small footprint for those who need a simple, elegant and pragmatic toolkit to build high-performing, full-featured web applications.'
}
render('index', data);
})
create layout file layout.ejs in directory 'myApp/app/views/layout/'.
<html>
<head>
<meta http-equiv="Content-Type",content="text/html; charset=utf-8">
<title>welcome to icecream!</title>
</head>
<body>
<div class="main">
<%-body%>
</div>
</body>
</html>
Note: icecream uses ejs as the default template engine, so 'ejs' is the default file name extention for views.
create view file index.ejs in directory 'myApp/app/views/page/'.
<h2><%=name%></h2>
<div><%=introduction%></div>
####run the application####
open a shell prompt and change directory to your applicaton
cd /path to your application (myApp)
node start.js
open http://localhost:3000 in browser
FAQs
rapid web framework for nodejs
The npm package icecream receives a total of 77 weekly downloads. As such, icecream popularity was classified as not popular.
We found that icecream demonstrated a not healthy version release cadence and project activity because the last version was released 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's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.