Appearance
Deployment
This guide provides instructions for deploying the Tracktor application on your own server. You can choose between using Docker for a containerized setup or deploying it as a standard Node.js application.
Docker Deployment
Using Docker is the recommended way to deploy Tracktor, as it encapsulates the application and its dependencies in a consistent environment.
Prerequisites
- Docker installed on your server.
Steps
Clone the repository:
bashgit clone https://github.com/your-username/tracktor.git cd tracktor
Build the Docker image:
bashdocker build -t tracktor .
Run the Docker container:
bashdocker run -p 3000:3000 -d tracktor
This will start the Tracktor application, and it will be accessible at http://localhost:3000
.
Node.js Deployment
If you prefer to run the application directly on your server without Docker, you can follow these steps.
Prerequisites
- Node.js (v18 or higher) installed on your server.
- npm (usually comes with Node.js).
Steps
Clone the repository:
bashgit clone https://github.com/your-username/tracktor.git cd tracktor
Install dependencies:
bashnpm install
Build the application:
bashnpm run build
Start the application:
bashnpm start
This will start the Tracktor application, and it will be accessible at http://localhost:3000
.