Skip to content

Example backend application powered by Express running on Node.js.

License

Notifications You must be signed in to change notification settings

mitom18/example-server-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example Node.js server

Implementation of example backend application written in TypeScript powered by Express running on Node.js.

Features

  • Database connection (MySQL)
  • ORM
  • HTTP REST API
  • Logger
  • Authentication

Usage

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.

Built With

Performance

Performance tests and their results can be seen here.

Licence

MIT

About

Example backend application powered by Express running on Node.js.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published