Skip to content

Latest commit

 

History

History
75 lines (47 loc) · 1.57 KB

setup.md

File metadata and controls

75 lines (47 loc) · 1.57 KB

🤏 Pre-requisites

Before installation, please make sure you have already installed the following tools:

🛠️ Installation Steps

  • Fork the project. Click on the Fork button in the top right to get started.

  • Use these commands in your git bash/terminal to make a clone of the project in your local machine.

  • Clone your forked repo by replacing the URL in this command:

git clone https://github.com/Sanchitbajaj02/palettegram.git

🏃‍♂️ Steps for running the development server

  • Navigate to the project directory:
cd  palettegram
  • Install the dependencies for the project.

Note: make sure to install yarn as the project will not work properly with npm or pnpm.

yarn  install --frozen-lockfile
  • Setup the environment variables by referring .env.example file.

  • Start the development server using the below command:

yarn dev

🏃‍♂️ Set up using docker

  • Navigate to the project directory:
cd  palettegram
  • Create a file .env.local and fill it with the environment variables.
cp .env.example .env.local
  • Start the development server using the below command:
docker compose -f docker-compose.dev.yml up
  • For the production server, run the following command:
docker compose -f docker-compose.yml up
# or
docker compose up