Curator is an html builder using the template engine edge from Adonis, we try to implement the template engine from the backend to the frontend, this template engine is very similar to the blade of Laravel. Curator has also used Laravelmix for its bundler assets and already, includes bootstrap version 4 and other supporting components
- You need Nodejs and latest version npm https://nodejs.org/en/
- Run npm install --save-dev
- Setup .env file for setting configuration
- Run Npm start for starting dev server and compile html , and npm run watch for compile assets
- Happy coding
- Dev Server (inludes host and port)
- You can set route host and port in .env file at root folder
- Dotenv
- Configure with Laravelmix https://laravel-mix.com/
- Template engine ( use edge ) https://edge.adonisjs.com/
- Compile to html file
- Data Parse
- Beauty Routing (Manual And Automatic)
- Autoload
- Pretify html
No | CODE | Type | Function | Example |
---|---|---|---|---|
1 | APP_NAME | String | Set global applicaton name | Curator |
2 | APP_MODE | String | Set Application mode | development , deploy |
3 | HOST | String | Set Application dev server host | 0.0.0.0 |
4 | PORT | Integer | Set Application dev server port | 9090 , 8080 , 80 |
5 | COMPILE_DIR | String | Set Compile edge file directory | resources/views |
6 | PUBLIC_DIR | String | Set Compiles html file directory | 9090 , 8080 , 80 |
7 | COMPILE | Boolean | Set compile mode | true , false |
8 | ROUTER | String | Set Router Type | manual (you need define route in router file) , auto |
9 | PRETIFY_HTML | Boolean | Pretifying Html file after compile | true , false |
10 | AUTOLOAD | Boolean | Set autolaod for dev server | true , false |
Route file in app/route.json you can define your file and route name at this but you need set router in .env file to manual
This have function for disabling compile and acces directory at compile process You can set in app/protector.json
Data file in app/data you need to define your json file in register.json for access data in your webpage (example was includes)
Before use api you need to register route api in app/api.json after that in app/api/* you can create new api file (ex : user.json) (example was includes )
This have function to replace string in file in compile process You can set on app/helpers/helpers.json Parameter :
- compile : Process after compile or before compile
- mode : Application mode in .env file
- subdir : file directory , this will be very useful if you use multiple languages
- find : words you want to find
- replace : sentence or word that will replace it
This Have function to manualy creatiing global function and you can access this on odge file You can set helper function in app/helpers/helpers.js
- Dont Modify bin directory