Skip to content

astrosnat/play-money

 
 

Repository files navigation

Play Money [Temp]

Play Money is a prediction market platform. This codebase is structured as a monorepo using Turborepo, containing multiple standalone apps and shared feature packages.

Join the discord!

Project Structure

  • apps: Standalone apps, such as web, backend, etc.
  • packages: Shared libraries split by feature, colocating backend and frontend logic together.

Getting Started

Prerequisites

  • Node.js >= 18
  • npm

Setup

  1. Clone the repository:

    git clone https://github.com/casesandberg/play-money.git
  2. Install dependencies:

    npm install
  3. Set up postgres database:

    • Follow the Installation instructions.
    • Set a password during installation and accept default settings for other options.
    • Open a terminal and run:
      psql -U postgres
    • Enter the password you set during installation.
    • Create a new database for local development:
      CREATE DATABASE playmoney;
  4. Set up environment variables:

    • Create a .env file based on the .env.example file provided.
    • (Reach out to @casesandberg to get the shared dev env if you wish)
  5. Start development servers:

    npm run dev

Code Formatting and Linting

  • Eslint and Prettier are used to enforce consistent code style.
  • Before merging a pull request, please format your code:
    npm run format
  • Alternatively, use a code editor that formats on file save.

Contribution Guidelines

  • Make sure your code adheres to the style guidelines.
  • Feel free to reach out to maintainers for questions or clarifications.

About

Simple prediction market platform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 97.3%
  • PLpgSQL 1.3%
  • JavaScript 1.2%
  • CSS 0.2%