npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

glintcms-starter-intesso

v1.3.3

Published

This is a WebSite implementation with GlintCMS. It shows how you can use GlintCMS.

Downloads

169

Readme

glintcms-starter-intesso

This is a WebSite implementation with GlintCMS. It shows how you can use GlintCMS.

GlintCMS Documentation

prerequisites

make sure you have got node.js installed on your system.

so far it has been tested with node 0.12.x and 4.x on mac os x and on ubuntu.

# for development, nodemon is helpful
npm install -g nodemon

use

this starter contains a whole web site including the data storage.

It uses the filesystem as the storage adapter: glint-adapter-fs.

Therefore you don't have to install a database to run it.

npm module

you can install it as a module for your express or connect application.

install

# install in your app
npm install glintcms-starter-intesso --save

# copy the datastore into your app
cp -r node_modules/glintcms-starter-intesso/datastore/ datastore

run

you can run it as a standalone application like this:

var options = {};
var glintcms = require('glintcms-starter-glintcms')(options);
glintcms.listen(process.env.PORT || 3000);

or you can mount it into your web application:

var express = require('express');
var app = express();
var options = {};
var glintcms = require('glintcms-starter-glintcms')(options);

app.get('/', function(req, res, next){
  res.send('<h1>my new homepage</h1> check it out: <a href="/cms">GlintCMS</a>');
});

app.get('/cms', function(req, res, next){
  req.url = '/';
  next();
});

app.use(glintcms.app);

app.listen(process.env.PORT || 3000);

standalone

you can install it with git clone. this is the preferred way, when you want to take it as a starting point to develop your own app with GlintCMS

install

# change directory into the directory you want `glintcms-starter-glintcms` to be created
git clone https://github.com/glintcms/glintcms-starter-glintcms && cd glintcms-starter-glintcms
# setup for production
npm run setup
# setup for development
npm run setup-www

run

# build it and run it
npm run build && node start

# or build for development
npm run build-www
# and start with automatic restart on file changes
npm run www

# if you want to run it with a specific port
export PORT=3000; npm run www

# start with specific options with the substack/subarg synthax
node start.js --upload [ --get /up* ]

browse & edit

  1. open the website: http://localhost:8080/
  2. login via: http://localhost:8080/login

project structure

The directories local_modules/* contain the local_modules that are bundled with this starter project. These modules are like normal unpublished npm modules, that are just contained in this project. It does not really make sense to publish them because they are very project specific.

The advantage to treat them as npm modules are:

  • They are self contained and have defined dependencies in the package.json.
  • It is easier to copy them into another project
  • It lets you avoid deep relative links

During development

These modules are symlinked into the node_modules directory, when running npm run setup-www or local_modules link -f

In production

When running npm run setup or local_modules install -f they are copied into the node_modules directory

author

Andi Neck | @andineck | [email protected] | intesso

get involved

Any Feedback is highly appreciated. Please create an Issue or PR. I'm happy to add you as a comitter too.

license

MIT