JET < Jo's Express Template > is a simple template for creating new express applications.
It includes a basic express setup, configured to suit my needs.
Additionally, there are well documented guidelines that help keep my codebases organized and maintainable.
.forgejo/workflows | ||
config | ||
controller | ||
model | ||
public | ||
routes | ||
views | ||
.eslintrc.js | ||
.gitignore | ||
app.js | ||
docker-compose.yml | ||
Dockerfile | ||
entrypoint.sh | ||
example-compose.yml | ||
example.env | ||
LICENSE | ||
package-lock.json | ||
package.json | ||
README.md |
Jo's Express Template / JET ;)
Initialize a new project
All you really need to do, is to make a copy of example.env and name it ".env". Finally, replace the values as required and enjoy your new Express server :)
Code Structure
One of the most important aspects of a template like this one is, that it gives the developer some kind of base guidelines to work with. This includes, but is not limited to, comments, code dividers, and more...
Dividers
The dividers that may be commonly seen in this template are as follows:
[ ↓ ] Watermark (ASCII generator)
// _
// o O O _ | | ___
// o | || | / _ \
// TS__[O] _\__/ \___/
// {======|_|"""""|_|"""""|
// ./o--000'"`-0-0-'"`-0-0-'
//
// Code written by «Johannes Reckers»
//------------------------------------------------>
[ ↓ ] Categories
//------------------------------------------------>
// Category description
//------------------------------------------------>
[ ↓ ] Sub-Categories
//-------------------<[ x_x ]>
// Sub-Category description
//---[ ↓ ]
Comments
TODO: Add guidelines for comments
IDE Setup
Here are some general IDE setup tips and plugins which were used during this templates creation.