mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-05 04:15:43 +00:00
Updated Project Structure (markdown)
@@ -7,4 +7,13 @@ The ``.json`` language files are located in ``/locales`` and are separated by na
|
||||
|
||||
## Source code
|
||||
We use [TypeScript](https://www.typescriptlang.org/) (JavaScript with types).
|
||||
The ``.ts`` source files are located in ``/src/`` and will be compiled to ``.js`` in the ``/dist/`` directory.
|
||||
The ``.ts`` source files are located in ``/src/`` and will be compiled to ``.js`` in the ``/dist/`` directory.
|
||||
|
||||
### Middlewares
|
||||
All Express [Middlewares](http://expressjs.com/en/guide/writing-middleware.html) are in the directory ``/src/middlewares/`` and need to be manually loaded in ``/src/Server.ts``.
|
||||
|
||||
### Routes
|
||||
All Express [Router](http://expressjs.com/en/4x/api.html#router) Routes are in the directory ``/src/routes/`` and are automatically registered.
|
||||
|
||||
### Util
|
||||
All Utility functions are in the directory ``/src/util/``.
|
||||
Reference in New Issue
Block a user