Coder Social home page Coder Social logo

template's Introduction

LikeC4 Template

This template is a simple example of how to use LikeC4.
Contains:

Demo - https://template.likec4.dev

Try it online:

Open in StackBlitz

StackBlitz does not support extensions, so do not expect validation, syntax highlighting and other features in likec4 files.
Try this template online with github.dev and install extension.

How-to

  1. Create a new repository from this template
  2. Pull your repository and open in VSCode
  3. Install suggested LikeC4 extension

Now you can edit likec4 sources, refactor, navigate and preview diagrams.

CLI

You can install globally, locally and use scripts from package.json, or just via npx
Check how to install likec4

LikeC4 requires Node.js version 18+, 20+

To start local server with live reload (for development or quick preview)
Inside the project folder:

npx likec4 start

Export to PNG:

npx likec4 export png -o png

Documentation: https://likec4.dev/docs/tools/cli/

Deployment

Deployment is the same as for any project built with vite.

  1. Build static site (export to HTML, ready for deployment):
npx likec4 build -o ./dist

Check npx likec4 build --help for options and examples

  1. Upload ./dist folder to your hosting

Github Pages

This template contains workflow to deploy to github pages on every push to main branch.
Check .github/workflows/pages.yml

License

This project is released under the MIT License

template's People

Contributors

davydkov avatar

Stargazers

 avatar  avatar  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.