Installation & Deployment
This guide provides instructions for installing and deploying your Prodcat documentation website.
Prerequisites
Server requirements
- A web server (e.g., Apache, Nginx)
- Node.js and npm
Software dependencies
- Docusaurus
- Prodcat
Installation
Step-by-step installation guide
- Install Node.js and npm: Follow the official instructions to install Node.js and npm on your server.
- Install Docusaurus: Use
npxto create a new Docusaurus site:npx create-docusaurus@latest my-website classic. - Install Prodcat: Install Prodcat in your Docusaurus project:
npm install prodcat.
Configuring the environment
- Set up your environment variables for development and production.
- Configure your web server to serve the Docusaurus build output.
Deployment
Building for production
Run the following command to build a production-ready version of your website:
npm run build
This will generate a build directory with static HTML, CSS, and JavaScript files.
Deployment strategies
You can deploy your Prodcat website to various hosting platforms:
- Netlify: A popular choice for hosting static websites with continuous deployment.
- Vercel: Another excellent platform for deploying Docusaurus sites.
- Self-hosted: You can host the
builddirectory on your own web server.
Continuous integration and deployment (CI/CD)
Set up a CI/CD pipeline with GitHub Actions, GitLab CI, or Jenkins to automate the build and deployment process whenever you push changes to your repository.