Skip to main content

MTB Backend API

Headless CMS backend for mountain biking club management with event registration, payment processing, and content management powered by Strapi 5.

GET /api/clubs
POST /api/inscripciones
GET /api/noticias
POST /api/mensajes

Quick Start

Get your MTB Backend API up and running in minutes

1

Install Dependencies

Clone the repository and install the required packages.
git clone https://github.com/Ltrejosb/backend-mtb.git
cd backend-mtb
npm install
2

Configure Environment

Set up your environment variables for database and server configuration.
# Create .env file
NODE_ENV=development
HOST=0.0.0.0
PORT=1337
APP_KEYS=your-app-keys-here
The API supports SQLite, MySQL, and PostgreSQL. SQLite is configured by default for development.
3

Start the Server

Run the development server and access the Strapi admin panel.
npm run develop
Your API will be available at http://localhost:1337
4

Make Your First Request

Test the API by fetching club information.
curl http://localhost:1337/api/clubs
{
  "data": [
    {
      "id": 1,
      "attributes": {
        "nombreClub": "Mountain Bike Club",
        "emailConacto": "[email protected]",
        "telefonoContacto": "+1234567890",
        "direccion": "123 Trail St"
      }
    }
  ],
  "meta": {
    "pagination": {
      "page": 1,
      "pageSize": 25,
      "pageCount": 1,
      "total": 1
    }
  }
}

Explore by Topic

Deep dive into the features and capabilities of the MTB Backend API

Content Types

Learn about the data models for clubs, events, registrations, news, and messages

API Endpoints

Complete REST API reference with request/response examples

Authentication

Secure your API with Strapi’s built-in authentication system

Payment Integration

Process event registrations with Flow payment gateway

Database Configuration

Configure SQLite, MySQL, or PostgreSQL for your deployment

Filtering & Pagination

Query your data efficiently with Strapi’s powerful filtering

Key Features

Everything you need to manage a mountain biking club

Club Management

Manage club information, logos, history, mission, and contact details

Event Registration

Handle registrations with category support, age validation, and payment tracking

Payment Processing

Integrated with Flow payment gateway for secure transaction handling

News Management

Publish and manage news articles with rich content, images, and scheduling

Contact Messages

Receive and manage contact form submissions with tracking and responses

Flexible Database

Support for SQLite, MySQL, and PostgreSQL databases

Ready to get started?

Follow our quickstart guide to set up the MTB Backend API in minutes and start building your mountain biking club management system.

View Quickstart Guide