Implementation of example backend application written in TypeScript powered by Express running on Node.js.
- Database connection (MySQL)
- ORM
- HTTP REST API
- Logger
- Authentication
Application requires MySQL database. Ensure you have access to a MySQL database server. You can initialize the database with db_init.sql
script. Database contains user with credentials admin@admin.com
/ password
.
To run this application, you'll need Node.js (which comes with npm) installed on your computer.
Then from your command line:
# Install dependencies
npm install
# Run the app in development
npm run start:dev
# Build the production version
npm run build
# Build and run the production version
npm run start
# Compile the production bundle to executable binary
npm run compile
IMPORTANT: When you run the executable binary, ensure you have the proper
.env
file in the same directory as the binary.
Performance tests and their results can be seen here.
MIT