Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lcui-dev/lcui-router-app
A very simple browser-like application to show the LCUI and LCUI Router features
https://github.com/lcui-dev/lcui-router-app
lcui router
Last synced: 1 day ago
JSON representation
A very simple browser-like application to show the LCUI and LCUI Router features
- Host: GitHub
- URL: https://github.com/lcui-dev/lcui-router-app
- Owner: lcui-dev
- License: cc0-1.0
- Archived: true
- Created: 2019-12-08T11:22:28.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-10T15:25:42.000Z (over 1 year ago)
- Last Synced: 2024-10-14T13:01:36.149Z (20 days ago)
- Topics: lcui, router
- Language: C
- Homepage:
- Size: 425 KB
- Stars: 32
- Watchers: 3
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-xmake - lcui-router-app
README
# lcui-router-app
[![GitHub Actions](https://github.com/lc-ui/lcui-router-app/workflows/C%2FC%2B%2B%20CI/badge.svg)](https://github.com/lc-ui/lcui-router-app/actions)
(**English**/[中文](README.zh-cn.md))
A very simple browser-like application to show the LCUI and LCUI Router features.
[![Screenshot](./screenshot.gif "Screenshot")](./screenshot.gif)
## To Use
To clone and run this repository you'll need install the following tools on your computer:
- [Git](https://git-scm.com)
- [Node.js](https://nodejs.org/en/download/) (which comes with [npm](http://npmjs.com))
- [LCPkg](https://github.com/lc-soft/lcpkg)(Windows only)::
```bash
npm install -g lcpkg
lcpkg setup
```
- [LCUI CLI](https://github.com/lc-ui/lcui-cli):
```bash
npm install -g @lcui/cli
```
- [CMake](https://cmake.org/) or [XMake](https://xmake.io/)From your command line:
```bash
# Clone this repository
git clone https://github.com/lc-ui/lcui-router-app# Go into the repository
cd lcui-router-app# Install NodeJS dependencies
npm install# Install C/C++ dependencies for x64 CPU architecture
lcpkg install --arch x64# Run the app
npm start
```Other useful commands:
```bash
# Build this repository in release mode
lcui build --mode release# Build this repository with CMake
lcui build --tool cmake# Compile css files
npm run build:css
```## What's included
- Some resource files.
- Some scripts that make it easy for you to quickly build application.
- Configuration files for [CMake](https://cmake.org/) and [XMake](https://xmake.io/) build tools, You can choose one of them that you like.
- Simple data storage implementation in `src/lib/store.c`.
- [.scss](https://sass-lang.com/guide) files for describe the user interface style.
- Implementation of the browser's graphical interface.
- Welcome page, about page, file page, 404 page, new tab page.
- Example for the routing navigation of the [LCUI Router](https://github.com/lc-soft/lcui-router).
- Examples of use of the [LC Design](https://github.com/lc-ui/lc-design) component library.## Project Structure
- **`app`**: contains the resource files required for the application to run. You can use it as the working directory of the application, and when you publish your application, you only need to package the files in that directory.
- **`build`**: contains build tool output files.
- **`config/router.js`**: Configuration file for the LCUI Router, it can be compiled into a `src/lib/router.c` file using the `lcui compile router` command.
- **`scripts`**: contains build-related scripts and configuration files.
- **`src`**: contains the source code.
- **`ui`**: contains source code related to the user interface.
- **`stylesheets`**: contains the source code of stylesheets. You can put [.scss](https://sass-lang.com/guide) files here, they will be compiled into css files and outputed to the `app/assets/stylesheets` directory at build time.
- **`components`**: contains the source code of the components.
- **`views`**: contains the source code of the views.
- **`lib`**: contains the base library code.## License
[CC0 1.0 (Public Domain)](LICENSE.md)