cicitech12 / docusaurus.github.io

0 stars 0 forks source link

Developer Platform

⚙️ Setup

1. Clone the Repository:

   git clone https://github.com/apipinic/developer-platform.git

2. Navigate to the Project Directory:

   cd developer-platform

3. Build and Run the Docker Container:

   docker build -t developer-platform .
   docker run -d --name developer-platform -p 3000:3000 developer-platform

4. Access the Application:

Open your web browser and go to http://localhost:3000 (or alternatively to http://127.0.0.1:3000).

5. Pull and Start the Container Directly:

If you prefer not to build the container manually, you can pull and start the container with the following commands:

   docker pull ghcr.io/apipinic/developer-platform:latest
   docker run -d --name developer-platform -p 3000:3000 ghcr.io/apipinic/developer-platform:latest

Deploy to Netlify

There are 2 required inputs for the action:

In case of already having the deployment ready data - we can easily skip the nvm, install and build part via passing:

- name: Deploy to Netlify
  uses: jsmrcaga/action-netlify-deploy@v2.0.0
  with:
    NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
    NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
    NETLIFY_DEPLOY_MESSAGE: "Deploy from GitHub Actions - Commit ${{ github.workflow_sha }} pushed by ${{ github.actor }}"
    NETLIFY_DEPLOY_TO_PROD: true