Structure Web Application Framework
Go to file
2020-11-15 15:18:57 +01:00
config Add required username to magic link authentication and fix many errors 2020-11-14 17:24:57 +01:00
src AuthController: use Validator system for unknown user on login 2020-11-15 15:18:57 +01:00
test tests: get rid of useless csrf.njk template 2020-11-15 15:15:21 +01:00
views Add required username to magic link authentication and fix many errors 2020-11-14 17:24:57 +01:00
.eslintrc.json eslint: add no-floating-promises 2020-10-01 14:18:31 +02:00
.gitignore Add auto update component 2020-05-05 15:19:23 +02:00
jest.config.js Add many eslint rules and fix all linting issues 2020-09-28 14:15:22 +02:00
LICENSE Add license 2020-08-25 17:58:34 +02:00
package.json Simplify build cp command and add README.md to published package files 2020-11-12 16:56:03 +01:00
README.md Rename project to swaf 2020-11-12 16:11:16 +01:00
tsconfig.json Add many eslint rules and fix all linting issues 2020-09-28 14:15:22 +02:00
tsconfig.test.json Add many eslint rules and fix all linting issues 2020-09-28 14:15:22 +02:00
yarn.lock Add basic development environment for testing purposes 2020-11-11 19:29:23 +01:00

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