Giter Site home page Giter Site logo

neirth / todoapp Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 630 KB

A experimental project for run C++ in a WebApplication using a asm.js runtime as business layer.

Home Page: https://neirth.github.io/ToDoApp/example/index.html

License: MIT License

CMake 9.33% CSS 3.50% HTML 2.36% JavaScript 26.45% C++ 58.36%
emscripten webcomponents conan asmjs fruit jsoncpp cpp cmake webapplication indexeddb

todoapp's Introduction

This is a Todo WebApplication using C++ and IndexedDB as base.

Why this project?

This project is designed to testing a mix of technologies, such as Asm.js, Fruit (From Google), IndexedDB, Conan, JsonCPP, and WebComponents. This project, trutly, it won't make your life easier, but can inspire for make a more useful and interesting project with C++ for Web Platforms.

Even so, if your idea is to have the panacea of writing a single application for the Web, iOS or Android. I highly recommend watching Kotlin Multiplatform or Flutter, it will save you a lot of headaches.

A small example of why these techniques may not be sufficient for the needs of your application: The (not so) hidden cost of sharing code between iOS and Android

Installation

For build this project, we must be configure before a Conan Dependency System, Cmake Build System and Emscripten WebAssembly SDK

The same steps are required if we desired develop the project using Visual Studio Code, please, in this case, run these commands before start developing:

[neirth@codespace todoapp]$ mkdir buildjs && cd buildjs # or name the folder as 'build' for develop with Visual Studio 
[neirth@codespace buildjs]$ sed -i 's/codespace/{YOUR_UNIX_USERNAME}/g' ../emscripten.profile # For point into correct emsdk path
[neirth@codespace buildjs]$ conan install -pr ../emscripten.profile ../conanfile.txt --build=fruit --build=jsoncpp --build=sqlite3
[neirth@codespace buildjs]$ emcmake cmake build ..
[neirth@codespace buildjs]$ make -j 8
[neirth@codespace buildjs]$

Usage

After build the project, copy the content of the folder ./example into your web server, or run this

[neirth@codespace todoapp]$ cd ./example
[neirth@codespace example]$ python -m http.server
Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

todoapp's People

Contributors

neirth avatar

Watchers

 avatar

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.