Starcounter
HomeDownloadDocsCommunity
2.3.1
2.3.1
  • Starcounter Documentation
  • Getting Started
  • Starcounter
    • Collapsing the Stack
      • Complexity and Scalability Tradeoff
      • The Future of Micro-Services
      • 10 Benefits of Collapsing the Stack
    • Integrated Database and Web Server
  • Hello World - Tutorial
    • Create a Database Class
    • Create a Real Time UI
    • First Interactive UI
    • Computed Properties
    • Expense Tracker
    • Cancel and Delete
    • The Next Step
  • Guides
    • Database
      • Database Classes
      • Data manipulation
      • Object Identity and Object References
      • Querying with SQL
      • Data Types
      • Relations
      • Inheritance
      • Sharing data
      • Database Configuration
      • Comparing Database Objects
      • Referential Integrity and Constraints
    • SQL
      • Identifiers
      • Path Expressions
      • Data operators
      • Joins
      • Aggregates
      • Comparisons and Logical Operators
      • Sorting
      • Fetch
      • Offset Key
      • Indexes
      • Literals
      • Query Plan Hints
      • Reserved words
      • Query for Database Classes
      • SQL Isolation Between Applications
    • Transactions
      • Short-Running Transactions
      • Long running transactions
      • Using Transactions
      • Running Background Jobs
      • Commit Hooks
    • Typed JSON
      • JSON-by-example
      • Code-Behind
      • Data Bindings
      • Callback Methods
      • Responding with JSON
      • Accepting JSON in Requests
      • Primitive Arrays and Single Value Types
      • Typed JSON Internals
    • Blendable Web Apps
      • Starcounter MVVM
      • Palindrom
      • Client-Side Stack
      • Sessions
      • HTML Views
      • App Shell
      • Web Components
      • View Attaching
      • View Composing
      • HTML Compositions
      • HTML Views Blending Guidelines
      • Avoiding CSS conflicts
      • Debugging
    • Network
      • HTTP
      • Internal Self Calls
      • Middleware
      • Anonymous or Substitute Handlers
      • URL Aliases and Redirects
      • Network Gateway
      • Static File Server
      • External HTTP Calls
      • WebSocket
      • Avoiding URI conflicts
      • TCP Sockets
      • UDP Sockets
    • Publishing Apps
    • Working with Starcounter
      • Release Channels
      • Starting and Stopping Apps
      • Administrator Web UI
      • Star CLI
      • StarAdmin CLI
      • StarDump CLI
      • Working in Visual Studio
      • Error Log
      • Using HTTPS on NGINX
      • Using HTTPS on IIS
      • Run Starcounter in Production
      • Weaver
      • Investigating App Crashes
      • Configuration Structure
      • Database Refactoring
      • Using Unload/Reload to Modify Database Schema
      • Kernel Questions and Answers
      • Log Files
  • Cookbook
    • Attach an HTTP Request to an Existing Long-Running Transaction
    • Cookie-Based Authentication
    • Timestamp on Object Creation
    • Creating Strongly Typed JSON Collections
    • Migrating From 2.2 to 2.3+
    • Multiple Pages
    • Icons
    • Proposed Project Structure
    • Acceptance Testing with Selenium
    • Requesting a User to Authenticate
    • How to delete unused tables and columns
Powered by GitBook
On this page
  • 1. Install Visual Studio
  • 2. Install Starcounter
  • 3. Build and Run an App
  • 4. Do the HelloWorld Tutorial
  • 5. Read More About Starcounter
  • 6. Try the Sample Apps
  • 7. Build Your Own App

Getting Started

PreviousStarcounter DocumentationNextStarcounter

Last updated 7 years ago

To get started building apps with Starcounter, follow these steps and you'll know everything you need to build world class web apps.

1. Install Visual Studio

Start by installing Visual Studio to use as a development environment. It's not strictly necessary, but it makes everything simpler.

If you don't already have Visual Studio 2015 or 2017 installed, install it from . The community edition is completely free to download.

2. Install Starcounter

When you have the development environment set up, you can download Starcounter. When using Starcounter for the first time, we recommend using either the latest release or release candidate. The latest release is likely more stable but has fewer features than the release candidate. If you don't want to make a choice, click and you'll get the latest release candidate.

Take a look at the for system requirements. All versions of Starcounter can be found on .

The installer will guide you through the process and install the Visual Studio Starcounter extension.

3. Build and Run an App

To run your first app, open Visual Studio and choose File -> New -> Project.... Create a new Starcounter application by going to Installed -> Templates -> Visual C# -> Starcounter -> Starcounter Application. If we call it "HelloStarcounter", it will create a project containing a Program.cs file that looks like this:

using System;
using Starcounter;

namespace HelloStarcounter
{
    class Program
    {
        static void Main()
        {

        }
    }
}

For a first simple application, we'll define a GET handler that returns an HTML element:

using System;
using Starcounter;

namespace HelloStarcounter
{
    class Program
    {
        static void Main()
        {
            Handle.GET("/Hello", () =>
            {
                return "<h1>Hello Starcounter!</h1>";
            });
        }
    }
}

Run the application by pressing F5 and go to http://localhost:8080/Hello.

If you see the screen above, then you've done everything right so far.

4. Do the HelloWorld Tutorial

5. Read More About Starcounter

6. Try the Sample Apps

7. Build Your Own App

We hope you'll enjoy Starcounter as much as we do!

With everthing set up, you can start the . It will teach you the basic features of Starcounter and how to build a standalone app.

To get a deeper understanding of Starcounter, read the section where we describe some of the fundamental concepts. You can then head over to the and get an in depth look on specific topics.

We've developed a bunch of apps that are available for everyone on . Feel free to run them, change them, make issues, and make pull requests. They should also give you an idea of apps are built to interact with each other.

With this, it's time to build your own app. When building, don't hesitate to ask questions in the repo on GitHub. We are always happy to get feedback on what we can improve.

visualstudio.com
this link
download page
downloads.starcounter.com/downloads
HelloWorld tutorial
Starcounter
topic guides
GitHub
Home