Get Started
⚠️ BEFORE YOU START
Please note that Metal As It Is is currently in the prototype phase, undergoing rigorous testing and refinement. This phase allows for experimentation, feature validation, and fine-tuning to ensure the final product meets the highest standards.
It is strongly discouraged to deploy Metal As It Is in a production environment at this stage, as the prototype is intended for testing purposes and may not yet have the stability and reliability required for production use.
Prerequisites
Before diving into Metal Server, make sure your environment meets the following prerequisites:
Installation
Clone the Metal Server repository:
bashgit clone https://github.com/anismegdiche/metal-server.git
Navigate to the project directory:
bashcd metal-server
Install required packages using npm:
bashnpm install
Compile the scripts:
bashnpx tsc
Configure your
config.yml
file located in the ./config folder.ℹ️ NOTE
For detailed configuration options, refer to the Configuration File Reference.
Start the server:
bashnpm run prod
Verification
Ensure that the server is running by using a tool like CURL:
curl http://localhost:3000/server/info
You should receive a response similar to the following:
{
"server":"Metal",
"version":"0.2"
}
Congratulations! You have successfully set up and verified your Metal Server installation.
Swagger UI
You may use the Swagger UI to visualize and test the API documentation. This powerful tool allows you to:
- Explore the API endpoints and their respective parameters
- Test API requests directly from the interface
- View detailed information about each endpoint, including response formats and error handling
The Swagger UI is available at http://localhost:3000/api-docs
. Simply navigate to this URL in your web browser to access the interface.