- express
- twig
- pm2
- to start with yaep do:
git clone [email protected]:AndrewCherabaev/yaep.git
cd yaep
npm i
npm start
- after
npm start
pm2-process will started and you can see everything bypm2 ls
- default config for pm is:
apps:
- script: ./bin/www
name: yaep
exec_mode: fork
autorestart: true
watch: true
instances: 1
merge_logs: true
error_file: './logs/error.log'
out_file: './logs/access.log'
env:
PORT: 3000
NODE_PATH: './app'
last line in env
params helps me to require modules from app root like require('controllers/index')
and not like require('./../controllers/index')
it's really "Yet Another EpressJS project"
it's build on top of epressjs and uses pm2 as process manager
i can say i try to write yet another application does everything at all
in general, future plans is to add some useful (really useful) modules as much as possible
yes, because i mean 'node modules'
move everything the app foldernew project rootapp/
express-session for sessionsnedb or lowdb for somethinguselowdb
as default driver. nedb not works fine for mejoi for validatorjoi
used for validating requestsconnect-flashconnect-flash
for flash messagespassport.js
for authsocket.io
for websocketssequelize
for databasesknex
plusbookshelf
for query builderfinale
for RESTify modelselasticsearch-js
for elasticsearchi18n
for internationalisationwebpack
for buildingbower
for browser librariesdotenv
ordotenv-safe
for environmentlodash
orunderscore
for functionalbabel-cli
andbabel-preset-env
forimport ... from
andexports
ES6 fetures; or not
- admin panel
- CMS with built-in editior
- CLI application
yaep
for generating some- published as
yaep-consolidator
foreign module
- published as
bootstrap
/foundation
/semantic-ui
/material
,fa
for frontent design
pm2 logs have ANSIColor format and --no-color
flag still not works properly
so for SublimeText 3, should you choose to use it, needs to install this ANSI format plugin
after that you can open *.log files in SublimeText 3 and do View -> Syntax -> ANSI
to see well-formated logs