Skip to content

kaspotz/pics-or-it

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pics-or-It Project Setup Guide

This repository, structured as a Yarn workspace, contains three main parts: the app (frontend), the server (backend), and the contracts (blockchain). This guide will help you set up and run each part of the project from the root directory.

Prerequisites

Before you begin, ensure you have the following installed:

Cloning the Repository

Clone the repository to your local machine:

git clone https://github.com/kaspotz/pics-or-it.git
cd pics-or-it

Installing Dependencies

Install dependencies for all workspaces from the root directory:

yarn install

Running the App (Frontend)

To start the app in development mode:

yarn app:dev

Open http://localhost:3000 to view the app in the browser.

Running the Server (Backend)

To start the server:

yarn server:dev

Running the Contracts (Blockchain)

  • Compile Contracts:

    yarn contract:compile
  • Run Tests on Contracts:

    yarn contract:test

Linting and Formatting

  • Lint Code:

    yarn lint
  • Format Code:

    yarn format

General Notes

  • These commands should be run from the root directory of the project.
  • For more specific details or troubleshooting, refer to the README files and documentation within each directory.