--- title: Introduction project: BannerSystem version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/bannersystem/1-0/guides/introduction/ updated: 2026-11-19T04:30:09.166Z --- # Introduction > What BannerSystem does and where to start. BannerSystem is a small ad server for websites and portals. You define the places where ads appear on your pages, add ad campaigns with an image and a link, and paste a short piece of code into your website. BannerSystem then shows the campaigns in turn and counts views and clicks.  ## Words used in these pages - **Banner**: a place for ads on your website, with a fixed size, for example 728x90 pixels at the top of the home page. - **Campaign**: one ad inside a banner. It has an image, the address it opens, and a limit of views or clicks. - **Embed code**: the script and the tag that you add to your website so the banner appears there. ## What you need - A server with Node.js, or Docker. - A website where you can add HTML code. - Images for your ads in the size of each banner. ## What to read next 1. Install BannerSystem with [Node.js](../install/) or [Docker](../install-with-docker/). 2. Open it for the [first time](../first-start/) and protect it with an [access token](../access-token/). 3. Create your [banners](../banners/) and their [campaigns](../campaigns/). 4. [Put a banner on your website](../embed-a-banner/). 5. Follow the results in [Statistics](../statistics/). --- title: Install with Node.js project: BannerSystem version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/bannersystem/1-0/guides/install/ updated: 2026-11-19T04:30:09.166Z --- # Install with Node.js > Download BannerSystem, install its dependency and start it with Node.js. Follow these steps to run BannerSystem with Node.js. BannerSystem needs no database server: it keeps its data in files inside its own folder. ## Get the application **1.** Download the source code: ```bash git clone https://github.com/totaljs/bannersystem.git cd bannersystem ``` **2.** Install the dependencies: ```bash npm install ``` ## Start BannerSystem ```bash npm start ``` BannerSystem listens on port 8000. To choose another port or start in release mode, see [Command line](../../reference/command-line/). ## Open BannerSystem Open `http://127.0.0.1:8000` in your browser. BannerSystem opens the **Banners** screen. Then continue with [First start](../first-start/). The browser loads the files of the interface from `cdn.componentator.com`, so the computer you use for the administration needs internet access. --- title: Install with Docker project: BannerSystem version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/bannersystem/1-0/guides/install-with-docker/ updated: 2026-11-19T04:30:09.166Z --- # Install with Docker > Run the official BannerSystem image with a volume that keeps your data. The official image is `totalplatform/bannersystem`. It contains the application and Node.js, and it listens on port 8000. ## Start the container ```bash docker run -d --name bannersystem -p 8000:8000 -v bannersystem-data:/www/.src/databases/ totalplatform/bannersystem ``` - `-p 8000:8000` publishes the port. Change the first number to use another port on your server. - `-v bannersystem-data:/www/.src/databases/` keeps your banners, campaigns, images and configuration in the Docker volume `bannersystem-data`. Open `http://127.0.0.1:8000` in your browser and continue with [First start](../first-start/). ## Keep your data Always start the container with the volume. Without it, your data stays inside the container and is lost when you remove the container. With the volume you can remove the container and create it again with the same command. Your banners, campaigns, images and access token are still there: ```bash docker rm -f bannersystem docker run -d --name bannersystem -p 8000:8000 -v bannersystem-data:/www/.src/databases/ totalplatform/bannersystem ``` To see what the volume contains, read [Data and backup](../../reference/data-and-backup/). --- title: First start project: BannerSystem version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/bannersystem/1-0/guides/first-start/ updated: 2026-11-19T04:30:09.166Z --- # First start > Open BannerSystem for the first time and find your way around the screen. When you open the address of BannerSystem, for example `http://127.0.0.1:8000`, it takes you to the administration at `/setup/`. A new installation opens the **Banners** screen with the message **You don't have any banners**. ## Protect the administration first A new installation has no password and no access token. Anybody who can reach the address can open the administration. Before you put BannerSystem on a public server, set a [primary access token](../access-token/). ## The screen  Under the button at the top, the bar on the left has three icons: - **Banners**: your banners and their campaigns. Read [Banners](../banners/). - **Configuration**: the name of the application and the access token. Read [Configuration](../configuration/). - **Documentation**: opens the Total.js documentation in a new tab. Each screen has its title on the top left and its buttons on the top right. ## Next steps 1. [Set the access token](../access-token/). 2. [Create your first banner](../banners/). --- title: Access token project: BannerSystem version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/bannersystem/1-0/guides/access-token/ updated: 2026-11-19T04:30:04.165Z --- # Access token > Protect the administration with the primary access token and open it with the token. The primary access token protects the administration of BannerSystem. When a token is set, the administration opens only with the token in its address. There are no user accounts: everybody who has the token can manage BannerSystem. ## Set the token 1. Click **Configuration** in the bar on the left. 2. Under **Security**, click **Generate**. BannerSystem writes a new random token into **Primary access token**. You can also type your own token. 3. Copy the token and keep it in a safe place, for example a password manager. 4. Click **SUBMIT**. 5. BannerSystem shows **The configuration has been saved successfully, but the app needs to be reloaded.** Click **OK**. The page opens again with the token in its address.  ## Open the administration with the token Add the token to the address of the administration: ```text http://127.0.0.1:8000/setup/?token=YOUR_TOKEN ``` Save this address as a bookmark. Without the token, the administration answers **401 Unauthorized**, and the home page of BannerSystem shows only its name. Your websites do not need the token: banners keep appearing on them. ## Change the token 1. Open the administration with the current token. 2. Open **Configuration**, change **Primary access token** and click **SUBMIT**. 3. Click **OK**. The page opens again with the new token. ## Keep the token safe - Use HTTPS in front of BannerSystem, because the token is part of the address. - After several wrong tokens from the same address, BannerSystem refuses the right token too for up to 15 minutes. See [Installation and access](../../faq/installation-and-access/). --- title: Banners project: BannerSystem version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/bannersystem/1-0/guides/banners/ updated: 2026-11-19T04:30:04.165Z --- # Banners > Create, change, disable and remove the places for ads on your website. A banner is a place for ads on your website, with a fixed size. Each banner has its own [campaigns](../campaigns/), its own [embed code](../embed-a-banner/) and its own [statistics](../statistics/). ## Create a banner 1. Click **Banners** in the bar on the left. 2. Click **Create** on the top right. When you have no banners yet, you can also click **Create first**. 3. Fill in the form and click **SUBMIT**.  | Field | What it does | |---|---| | **Name** | The name in the list, for example `Homepage top`. Up to 80 characters. | | **Target device** | **All devices**, **Desktop devices** or **Mobile devices**. The banner appears only on the devices you choose. | | **Icon** | The icon of the banner in the list. | | **Width** and **Height** | The size of the ad images in pixels, for example 728 and 90. The campaign form fits each image to this size. | | **Disable banner** | Stops the banner on all websites. | | **Round corners on the banner** | Shows the ad image with rounded corners. | ## The list of banners Each banner is a card with its icon, size and name, the number of **Active campaigns** and the number of **Today views**. Type in **Search** to find a banner by its name. Click **Refresh** to load the numbers again. Click a card to open the banner. The banner screen shows its statistics, its actions and its campaigns.  ## Change a banner 1. Click the three dots on the card and choose **Update**. On the banner screen, click **Update** on the top right. 2. Change the form and click **SUBMIT**.  If you opened **Update** and want to create a new banner next, reload the page before you click **Create**. Then the form starts empty. ## Turn a banner off and on On the banner screen, use the switch next to **Banner is enabled** in the **Actions** panel. A disabled banner shows the red **Disabled** label next to its name and appears empty on your websites. Its campaigns keep their settings. ## Remove a banner 1. Click the three dots on the card and choose **Remove**. 2. Confirm with **Remove**. Remove the [embed code](../embed-a-banner/) of the banner from your website too. --- title: Create a campaign project: BannerSystem version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/bannersystem/1-0/guides/campaigns/ updated: 2026-11-19T04:30:09.166Z --- # Create a campaign > Add an ad to a banner: image, link, customer, start date and limit. A campaign is one ad inside a banner. When a banner has several active campaigns, your visitors see them [in turn](../how-banners-are-shown/). ## Create a campaign 1. Open **Banners** and click the banner. 2. Click **Create** on the top right. When the banner has no campaigns yet, you can also click **Create** in the middle of the screen. 3. Click the large square at the top and choose the image of the ad. 4. Fill in the form and click **SUBMIT**.  ## The fields | Field | What it does | |---|---| | Image | The ad. The text under the square shows the size of the banner, for example `(728x90)`. The form fits the image to this size, so use an image with the same size or at least the same proportions. | | **Name** | The name of the campaign in the list. Up to 80 characters. | | **URL address** | The page that opens when a visitor clicks the ad. It must be a full address that starts with `https://` or `http://`. | | **Customer** | The advertiser. It appears as a label in the list of campaigns. Optional. | | **Note** | A note for you. Optional. | | **Begin** | The first day of the campaign. Today is filled in. | | **Limit** and **Count** | When the campaign ends: after a number of **Views** or **Clicks**. Read [Campaign limits](../campaign-limits/). | | **Ignore list** | Words that keep the campaign off some pages. Read [Ignore list](../ignore-list/). | A new campaign appears on your websites within a minute. A campaign with a **Begin** date in the future appears from that day. ## Change a campaign Click the campaign in the list. The **Update campaign** form opens with the same fields. Change what you need and click **SUBMIT**. To pause, restart or remove a campaign, read [Manage campaigns](../manage-campaigns/). --- title: Campaign limits project: BannerSystem version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/bannersystem/1-0/guides/campaign-limits/ updated: 2026-11-19T04:30:04.165Z --- # Campaign limits > End a campaign after a number of views or clicks, and run it again. Every campaign has a limit. When the campaign reaches it, BannerSystem marks it **Campaign is completed** and stops showing it. ## Choose a limit In the campaign form, choose **Limit** and fill in **Count**: | Limit | The campaign ends after | |---|---| | **Views** | the ad was shown **Count** times. | | **Clicks** | visitors clicked the ad **Count** times. | A new campaign starts with **Views** and a count of 1,000. ## When a campaign ends BannerSystem saves views and clicks once a minute. A campaign therefore ends within a few minutes after it reaches its limit, and it can get a few more views or clicks than the count. On a busy website, set the count a little lower than the number you sold. The list of campaigns shows the views, the clicks and the limit of each campaign, for example `10000 views`.  ## Run a completed campaign again 1. If you want a new limit, click the campaign, change **Count** and click **SUBMIT**. 2. Click the cog at the end of the row and choose **Reset**. 3. Confirm with **Reset**. **Reset** sets the views and clicks of the campaign to zero, and the campaign runs again within a minute. ## End a campaign on a date To end a campaign on a particular day, [pause](../manage-campaigns/#pause-and-start-a-campaign) it on that day. --- title: Ignore list project: BannerSystem version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/bannersystem/1-0/guides/ignore-list/ updated: 2026-11-19T04:30:09.166Z --- # Ignore list > Keep a campaign off the pages whose address contains certain words. The ignore list keeps a campaign off some pages of your website. For example, an ad for a garden shop can stay off your sport pages. ## Add words 1. Open the campaign. 2. In **Ignore list**, type the words separated by commas, for example `sport, results`. 3. Click **SUBMIT**. ## How it works Every time a banner loads on a page, BannerSystem looks for each word in the address of the page. When a word is found, it leaves that campaign out and shows another campaign of the banner. With the ignore list `sport`: | Page | Campaign | |---|---| | `https://www.example.com/` | can appear | | `https://www.example.com/sport/match-report` | does not appear | | `https://www.example.com/Sport/` | does not appear | The words are found also as part of a longer word: `sport` also matches `/sports/`. When the ignore list leaves out every campaign of a banner, the banner stays empty on that page. --- title: Manage campaigns project: BannerSystem version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/bannersystem/1-0/guides/manage-campaigns/ updated: 2026-11-19T04:30:09.166Z --- # Manage campaigns > Find, preview, pause, reset and remove the campaigns of a banner. The banner screen lists the campaigns of the banner, the newest first, twelve on each page.  ## Read the list Each row shows, from left to right: - the status: **Campaign is active**, **Campaign is paused** or **Campaign is completed**, - the image icon and the name, - the customer, - the views and the clicks, - the first day of the campaign, - the limit, for example `500 clicks`, - the cog with the options. A campaign with a **Begin** date in the future is listed as active. It appears on your websites from that day. Type in **Search** to find campaigns by name. Click **Refresh** on the top right to load the numbers again. ## Preview the image Click the image icon next to the name. The image of the campaign opens over the list. ## Pause and start a campaign 1. Click the cog at the end of the row. 2. Choose **Pause**. The status changes to **Campaign is paused**, and the campaign stops appearing on your websites within a minute. To run it again, open the same menu and choose **Start**.  ## Reset a campaign Choose **Reset** in the menu and confirm with **Reset**. The views and clicks go back to zero, and a completed campaign runs again. Read [Campaign limits](../campaign-limits/). ## Remove a campaign Choose **Remove** in the menu and confirm with **Remove**. The campaign and its numbers are deleted. --- title: Put a banner on your website project: BannerSystem version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/bannersystem/1-0/guides/embed-a-banner/ updated: 2026-11-19T04:30:09.166Z --- # Put a banner on your website > Copy the embed code of a banner and add it to the pages of your website. Each banner has an embed code with two parts: one script for the whole page and one tag for each place where the banner appears. ## Open the address of BannerSystem that your visitors can reach The embed code uses the address that you use to open the administration. Open BannerSystem through its public address, for example `https://ads.example.com/setup/?token=YOUR_TOKEN`, before you copy the code and before you upload images. Read [Config file](../../reference/config-file/) if BannerSystem runs behind another address. ## Copy the code 1. Open **Banners** and click the banner. 2. In the **Actions** panel, click **Set up a banner on your website**. 3. The first step shows the script. Click the code to copy it. BannerSystem shows **Copied to clipboard.** 4. Click **NEXT**. 5. The second step shows the tag of the banner. Click it to copy it.   ## Add the code to your page **1.** Paste the script once, at the bottom of the page, before `
The content of your page.
`: ```html ``` **2.** Paste the tag where the ad must appear: ```html
``` The value of `data-id` is the id of the banner. You can add the same tag several times, and tags of several banners, on one page. The script is still needed only once. A complete page with two banners: ```html