Getting Started

Getting started with the alt-seven framework.

This page covers your first steps with the alt-seven framework.

Prerequisites

Alt-seven is a client-side JavaScript framework. It runs in the context of a web browser, and typically- though not necessarily- runs on the Internet in the context of a web application served by a web server such as NGINX, IIS, or Apache Web Server.

Installation

The simplest method to install alt-seven is via npm.

$ npm install alt-seven

You can also download alt-seven from GitHub:

https://github.com/shoestringlab/altseven

Setup

Depending on how you installed alt-seven, you will need to reference it from your root HTML file in your project.

  • If you installed via npm, the framework will be located at: node_modules/altseven from the project root.

  • If you downloaded via git clone, the framework will be located in the /dist folder of the cloned alt-seven project.

  • If you downloaded an archive from GitHub, the framework will be located in the /dist folder inside the archive.

In the case of downloading via npm, you may want to create an alias that you use to reference the location of altseven.

For example, in a Node.js application using Express, you may set up a client-side reference like so:

`app.use( "/lib/altseven", express.static( 'node_modules/altseven' ) );`

Try it out!


Simple Example

Example code for a very simple alt-seven application.


Last modified February 2, 2024: alt-seven docs WIP (4050f35)