2015-08-14 09:45:27 +00:00
|
|
|
# BotanJS
|
2015-08-14 09:46:52 +00:00
|
|
|
A working concept of Js/Css framework for web browsers
|
2015-08-14 09:45:27 +00:00
|
|
|
|
|
|
|
### Features
|
|
|
|
- Compressable by Closure Compiler (Advanced Compression)
|
|
|
|
- Python-like, class oriented syntax structure
|
|
|
|
- Everything is merged into one file for that page
|
|
|
|
- css class inheritance
|
2015-08-14 10:12:10 +00:00
|
|
|
|
|
|
|
### Disclaimer
|
|
|
|
- This is a working concept. So it works on me. And may have a bunch of useless dependency. Use at your own risks!
|
|
|
|
- It requires Python 3!
|
|
|
|
|
|
|
|
|
|
|
|
### Documentation
|
|
|
|
- Will be added later
|
|
|
|
|
|
|
|
### Prerequisties
|
|
|
|
#### For Service.WebAPI
|
|
|
|
- pip install Flask
|
|
|
|
- pip install Celery
|
|
|
|
- pip install redis
|
|
|
|
- pip install compressinja
|
|
|
|
|
|
|
|
#### Environment varialbles
|
|
|
|
```
|
|
|
|
PYTHONPATH=<path to the parent of this directory>
|
|
|
|
```
|
|
|
|
|
|
|
|
#### For the compressor & cache, run:
|
|
|
|
```
|
|
|
|
celery -A botanjs.service.jwork worker
|
|
|
|
```
|
|
|
|
|
|
|
|
#### For the API Serivces, run:
|
|
|
|
```
|
|
|
|
./service/webapi.py
|
|
|
|
```
|