Rename project to swaf

This commit is contained in:
Alice Gaudon 2020-11-12 16:11:16 +01:00
parent efdd81b650
commit 9d50c5cc5f
6 changed files with 43 additions and 11 deletions

View File

@ -1 +1,33 @@
# WMS-Core
# 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

View File

@ -18,13 +18,13 @@
host: "localhost",
user: "root",
password: "",
database: "wms2",
database: "swaf",
create_database_automatically: false
},
redis: {
host: "127.0.0.1",
port: 6379,
prefix: 'wms'
prefix: 'swaf'
},
session: {
secret: 'default',

View File

@ -3,7 +3,7 @@
host: "localhost",
user: "root",
password: "",
database: "wms2_core_test",
database: "swaf_test",
create_database_automatically: true
}
}

View File

@ -1,8 +1,8 @@
{
"name": "wms-core",
"name": "swaf",
"version": "0.22.5",
"description": "Node web application framework and toolbelt.",
"repository": "https://gitlab.com/ArisuOngaku/wms-core",
"description": "Structure Web Application Framework.",
"repository": "https://eternae.ink/arisu/swaf",
"author": "Alice Gaudon <alice@gaudon.pro>",
"license": "MIT",
"readme": "README.md",

View File

@ -1,8 +1,8 @@
import {delimiter} from "path";
// Load config from specified path or default + wms-core/config (default defaults)
// Load config from specified path or default + swaf/config (default defaults)
process.env['NODE_CONFIG_DIR'] =
__dirname + '/../../node_modules/wms-core/config/'
__dirname + '/../../node_modules/swaf/config/'
+ delimiter
+ (process.env['NODE_CONFIG_DIR'] || __dirname + '/../../config/');

View File

@ -2,7 +2,7 @@
{% import 'macros.njk' as macros %}
{% set actionType = magicLink.action_type %}
{% set title = 'WMS: Magic Link' + (' - ' + actionType if actionType) %}
{% set title = app.name + 'Magic Link' + (' - ' + actionType if actionType) %}
{% set h1 = 'Magic Link' + (' - ' + actionType if actionType) %}
{% block body %}
@ -16,4 +16,4 @@
{% endif %}
</div>
</div>
{% endblock %}
{% endblock %}