SuperChampion Boilerplate is a simple yet powerful backend solution designed for managing football-related data across various European leagues. Built with Node.js and Express, and leveraging TypeScript and TypeORM for robust, scalable applications, this boilerplate integrates MySQL for data persistence and Docker for easy deployment.
- Express: Fast, unopinionated, minimalist web framework.
- TypeScript: Adds static types to JavaScript for more reliable code.
- TypeORM: ORM for TypeScript and JavaScript (ES7, ES6, ES5) supporting MySQL.
- Docker: Supports containerization to streamline development and deployment.
- Migrations: Manage database changes and version control.
- CORS: Cross-Origin Resource Sharing enabled.
-
Clone the repository:
git clone https://github.com/marciovcmotta/superchampion-boilerplate cd superchampion-boilerplate
-
Install dependencies:
npm install
-
Set up environment variables:
- Copy
.env.example
to.env
and update the values according to your local environment.
- Copy
-
Run Docker containers:
docker-compose up
-
Run migrations (Ensure the database service is up and running):
npm run typeorm migration:run
npm run start:dev
: Runs the server usingtsx
directly from TypeScript files.npm run start:watch
: Watches for file changes and restarts the server.npm run dist
: Builds the application usingtsup
.npm run start:dist
: Runs the built JavaScript code from thedist
directory.
Documentation related to the API endpoints and data models can be found in the docs
directory.
Contributions to the SuperChampion Boilerplate are always welcome, whether it be improvements to the documentation, bug fixes, new features, or other enhancements!
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.