src | ||
.gitignore | ||
Dockerfile | ||
LICENSE | ||
package-lock.json | ||
package.json | ||
README.md |
Malackathon Backend
Malackathon CyberBokeron backend repo.
Table of Contents
Description
This project is a backend API server for Malackathon CyberBokeron, built using C++ and Oat++, a lightweight and fast web framework for building REST APIs.
Features
- 🚀 High-performance backend with Oat++
- 📚 Clean API structure with REST endpoints
- 🧩 Modular design and scalability
- 🛡️ Integrated error handling and logging
- ⚙️ Easy to extend and customize
Tech Stack
- Language: C++17 or later
- Framework: Oat++
- Build System: CMake
- Database: [OracleSQL] (optional)
- Testing: [Unit testing library]
Installation
Before you begin, ensure you have the following installed:
- CMake
- Oat++
- Compiler supporting C++17, such as GCC or Clang
Step-by-step Installation
-
Clone the repository:
git clone
-
Navigate into the project directory:
cd Malackathon-backend
-
Create a build directory and configure the project using CMake:
mkdir build && cd build cmake ..
-
Build the project:
make
-
(Optional) Run the tests if available:
make test
Usage
To start the server, run the following command in the build
directory:
./project-executable
By default, the server will be accessible at http://localhost:8000
. You can change the port and other settings in the configuration file.
Environment Variables
You can configure the server using environment variables. Example:
export SERVER_PORT=8080
export DATABASE_URL=postgres://user:password@localhost:5432/dbname
API Endpoints
- GET /api/example - Fetches example data.
- POST /api/example - Creates a new example entry.
For a detailed list of endpoints, see the API documentation (poner algo aqui).
Contributing
Contributions are welcome! To contribute, follow these steps:
- Fork the repository.
- Create a new feature branch (
git checkout -b feature-new-feature
). - Commit your changes (
git commit -am 'Add new feature'
). - Push your branch (
git push origin feature-new-feature
). - Open a Pull Request.
Please ensure your code follows the project’s coding guidelines and passes all tests.
License
This project is licensed under AGPLv3 license.