Giter Site home page Giter Site logo

simulai / cancan Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dfinity/cancan

0.0 0.0 0.0 13.89 MB

A scalable video-sharing service.

Home Page: http://sdk.dfinity.org

License: Apache License 2.0

Shell 5.30% Modelica 34.81% JavaScript 5.21% TypeScript 42.95% Dhall 0.79% HTML 0.52% CSS 0.83% SCSS 9.60%

cancan's Introduction

CanCan

Build Status

A scalable video-sharing service.

Installation

Prerequisites

Double-check you have vessel installed at version 0.6.0, then clone this repository and navigate to the cancan directory.

$ vessel --version
# vessel 0.6.0

$ git clone [email protected]:dfinity/cancan.git
$ cd cancan

Start a local Internet Computer replica.

$ dfx start

Execute the following commands in another terminal tab in the same directory.

$ npm ci # <- This installs packages from the lockfile for consistency

$ ./bootstrap.sh

This will deploy a local canister called cancan_ui and open your default web browser to the app.

Frontend Development

To run a development server with fast refreshing and hot-reloading, you can use this command in the app's root directory:

$ npm run start

Your default browser will open (or focus) a tab at localhost:3000, to which you must then append /?canisterId=${cancan_ui_canister_id}, where cancan_ui_canister_id is typically (at current) ryjl3-tyaaa-aaaaa-aaaba-cai.

Now you can make changes to any frontend code and see instant updates, in many cases not even requiring a page refresh, so UI state is preserved between changes. Occasionally adding a CSS rule won't trigger an update, and the user has to manually refresh to see those changes.

Internet Identity (the app formerly known as IDP) Locally

Clone and setup the project and make sure that the idp_service is deployed, and you have the front-end available. then change our DEFAULT_IDP_URL to reflect where it is running. That should allow you to do auth locally to try out new IDP. For production, we will probably configure auth.ic0.app to be running this canister, but for now this is how to get it running.

TODO

Deploying to Mainnet (Beta)

TBD

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.