Before installation, please make sure you have already installed the following tools:
-
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
- 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
- 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