Structure Web Application Framework
Go to file
Alice Gaudon 238bbec429 Cancel replaces on ssr html todo 2021-04-30 14:04:42 +02:00
config Reorganize config params and use view.cache for caching instead of view.dev 2021-04-27 15:08:41 +02:00
scripts Fix prepare-sources.js comment 2021-04-27 15:44:20 +02:00
src Cancel replaces on ssr html todo 2021-04-30 14:04:42 +02:00
test Approval mode: revoke unapproved users auth proofs 2021-04-22 18:01:13 +02:00
views Svelte: refactor many symbols and safe eval backend calls arguments 2021-04-29 16:13:31 +02:00
.eslintrc.js Move svelte compilation to external rollup and add pre-compile-views cli 2021-04-23 15:56:39 +02:00
.gitignore Add svelte pre-compilation 2021-04-23 15:56:06 +02:00
LICENSE Add license 2020-08-25 17:58:34 +02:00
README.md Rename project to swaf 2020-11-12 16:11:16 +01:00
jest.config.js Increase jest test timeout 2021-04-22 18:01:35 +02:00
package.json Remove useless node-sass package 2021-04-30 10:50:54 +02:00
rollup.config.js Remove useless commandLineArgs.input manipulation 2021-04-27 15:00:43 +02:00
tsconfig.json Fix indent on tsconfig files 2021-04-27 15:44:04 +02:00
tsconfig.test.json Fix indent on tsconfig files 2021-04-27 15:44:04 +02:00
tsconfig.views.json Fix indent on tsconfig files 2021-04-27 15:44:04 +02:00
yarn.lock Remove useless node-sass package 2021-04-30 10:50:54 +02:00

README.md

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