Git Product home page Git Product logo

play-money's Introduction

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.

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.
    • Edit your postgres password in the .env file
    • You may need to setup prisma with npx migrate prisma or
      mkdir -p prisma/migrations/init
      npx prisma migrate diff --from-empty --to-schema-datamodel prisma/schema.prisma --script > prisma/migrations/init/migration.sql
      npx prisma migrate resolve --applied init
      npx prisma migrate dev
    • (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.

play-money's People

Contributors

casesandberg avatar anthonyedvalson avatar turbobot-temp avatar blackdiamand avatar

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.