Browse Source

Rename project to swaf

code-cleanup
Alice Gaudon 7 months ago
parent
commit
9d50c5cc5f
6 changed files with 43 additions and 11 deletions
  1. +33
    -1
      README.md
  2. +2
    -2
      config/default.json5
  3. +1
    -1
      config/test.json5
  4. +3
    -3
      package.json
  5. +2
    -2
      src/main.ts
  6. +2
    -2
      views/magic_link.njk

+ 33
- 1
README.md 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

+ 2
- 2
config/default.json5 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',


+ 1
- 1
config/test.json5 View File

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

+ 3
- 3
package.json 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",


+ 2
- 2
src/main.ts 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/');


+ 2
- 2
views/magic_link.njk 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 %}

Loading…
Cancel
Save