Giter Site home page Giter Site logo

alia-html-starter's Introduction

alia-html-starter

Deployment

This is a starter template for using alia/HTML.

You can see it deployed here:

https://alialib.github.io/alia-html-starter

Usage

These instructions assume you're running Linux (and will work inside the Windows Subsystem for Linux).

  1. Ensure sure that you have CMake (3.14 or higher) and Emscripten (1.39.18 or higher).

  2. Use this repository as a template to create your own instance of it. (Just press the big green button at the top.)

  3. Clone your repository locally.

  4. Build it. (Be sure to activate Emscripten for your shell before doing this.)

    mkdir build
    cd build
    emcmake cmake ..
    make -j
    

    Another option is to use VS Code with the CMake Tools extension to automatically handle this process. Just select the Emscripten kit and it should all work.

  5. To view your app, you'll need to run a web server to serve the files within the build/deploy directory. A Python 3.x script is included that will do this for you:

    cd build/deploy
    python3 ../../scripts/run-web-server.py
    

    With that running, you can navigate to http://localhost:8020/ to see your app.

  6. Edit src/app.cpp and try some things. You can find lots of ready-to-use code snippets within the HTML demos and the docs.

    Just rebuild and do a hard refresh (Ctrl-F5) to see your changes.

    Also feel free to edit index.html and style.css right from the src/ directory.

The repository is configured to automatically deploy to the gh-pages branch, so if you enable GitHub Pages for your repository, you can also see your creation live on the web!

alia-html-starter's People

Contributors

tmadden avatar bluesolei avatar

Stargazers

 avatar toge avatar Pierre Kestener avatar Jules avatar Lena avatar

Watchers

James Cloos avatar  avatar

alia-html-starter's Issues

Namespace html::

After including in the header why does it not recognize the html:: namespace?

captura-29-01-2022-02-01-40

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.