Coder Social home page Coder Social logo

fury999io / arktech-website Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arktechorg/arktech-website

0.0 0.0 0.0 200 KB

ArkTech Website

Home Page: https://ark-tech.netlify.app/

License: MIT License

JavaScript 60.40% CSS 32.74% HTML 4.21% Dockerfile 2.64%

arktech-website's Introduction

ArkTech Website

Website: Click here
Docker Image: Click here

Build Prerequisites

  • Node.js (v18.15.0 or higher)
  • Git (v2.33.0 or higher)

Optional: Docker (v20.10.8 or higher)

git clone https://github.com/ArkTechOrg/arktech-website.git

Setting up the project

To set up the project on your local machine, follow these steps:

  1. Navigate to the project directory in your terminal.
cd arktech-website
  1. Run the following command to install the required node modules:
npm i
  1. Once the node modules have been installed, you can start the project in development mode by running:
npm run dev

This will start the development server, and you can view the project by navigating to http://localhost:3000 in your browser.

Building the project for production

To build the project for production, run the following command:

npm run build

This will create a dist folder containing the optimized production-ready files. You can then deploy these files to your server.

Serve the build for testing

  1. Install the serve package globally
npm i -g serve
  1. Serve the build
serve -s dist

Deploying in Docker

Building the docker image and deploying it in a container

  • Make sure your present working directory is the root directory of the project
  • docker build -t arktech-website:latest . to build the docker image
Using Docker Run
  • docker run --rm --name irlamigo-website -p 443:443/tcp -p 80:80/tcp -d arktech-website:latest to deploy the docker image into a container
Alternate: Using Docker Compose
  • docker-compose up -d to deploy the docker image into a container

The website will be available at https://localhost

Optional: Using a custom docker registry

Enable the Docker registry service

  • docker run -d -p 5000:5000 --restart=always --name registry registry:2 (Run this command only once)

Tag and push the image to the registry

  • docker tag arktech-website localhost:5000/arktech-website:latest
  • docker push localhost:5000/arktech-website:latest

Deploy the image from the registry

  • docker run --rm --name arktech-website -p 443:443/tcp -p 80:80/tcp -d localhost:5000/arktech-website:latest

WARNING: Doing so would expose the project to local network. Make sure you're connected to your own secure network to protect from undiscovered security vulnerabilities and to maintain the privacy of this project, or consider using a firewall for safety reasons

Removing the docker container and image

  • docker container stop arktech-website to stop the docker container

NOTE: If you started the container using Docker Compose, run docker compose down instead.

  • docker image rm arktech-website:latest to remove the image

Deploy prebuilt docker image

docker pull docker.io/arkapravoghosh1/arktech-website:latest
docker run --rm --name arktech-website -p 443:443/tcp -p 80:80/tcp -d arkapravoghosh1/arktech-website:latest

Conclusion

That's it! You should now have the project up and running on your local machine. If you encounter any issues, please refer to the project's documentation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.