Structure Web Application Framework
Alice Gaudon
e31598fe4e
Reviewed-on: https://eternae.ink/ashpie/swaf/pulls/33 - config overhaul - package.json / yarn.lock - new scripts, improved - now a module - new deps and upgraded deps - rollup instead of webpack - `assets` folder moved to `src/assets` folder - `views` moved to `src/assets/views` folder - make svelte the default view engine (except for mails) - lots of refactoring - add personnal information fields to account page - and more |
||
---|---|---|
config | ||
scripts | ||
src | ||
test | ||
.eslintrc.cjs | ||
.gitignore | ||
jest.config.js | ||
LICENSE | ||
package.json | ||
README.md | ||
rollup.config.js | ||
tsconfig.json | ||
tsconfig.test.json | ||
yarn.lock |
Structure Web Application Framework
A NodeJS TypeScript web application framework (duh).
/!\ Still in development! There are not near enough tests /!\
Use at your own risk. Also please feel free to contribute with issues, bug reports and pull requests.
Features
Application building
- Model, View, Controller
- Uses express
- Custom Middleware classes that enable advanced modularity
- Modular models (you can add components with some definition automation)
- Simple database migrations (raw sql queries for now)
- Nunjucks for the view template engine
- Mail template system using Nunjucks + MJML
- Beautiful logging thanks to
tslog
Databases
- MySQL (persistent data)
- Redis (cache, session)
- (more to come)
Common systems
- Advanced modular multi-factor authentication system
- CSRF protection
- WebSocket server with Controller-style endpoint listeners
- WIP: automatic updates