slush-pagespace
v1.0.3
Published
Slush generator for Express apps with Pagespace middleware
Readme
slush-pagespace
Installation
Install slush-pagespace globally:
npm install -g slush-pagespaceRemember to install slush globally as well, if you haven't already:
npm install -g slushUsage
Create a new directory for your project:
mkdir new-pagespace-siteRun the generator from within the new directory:
cd new-pagespace-site
slush pagespaceYou will now be prompted to give your new Pagespace site name.
Project structure
The following projecct structure will be generated
new-pagespace-site/
├── .gitignore
├── README.md
├── package.json
├── app.js # Express app setup
├── bin
│ └── www # Script to start the HTTP server (npm start)
└── theme # Customize templates and public assets in this directory
├── templates
│ └── main.hbs # Starter template
└── assets
├── css
│ └── styles.js # Start CSS. Use your preferred CSS structure or preprocesser
└── favicon.ico Development
Run npm start to start your Pagespace server.
The Pagespace middleware configuration in app.js is for simple local development. More advanced configuration
is also available which more suitable for other setups such as production.
Next steps
Start by going to http://localhost:3000/_dashboard
Login with admin / admin and start working with Pagespace by importing templates and plugins.
