Code Monkey home page Code Monkey logo

party's Introduction

Requirements

  • PostgreSQL 15
  • Download the .env file from the discord server and save to project root. The file should have the DATABASE_URL variable set to the local postgresql.

Installation

  1. Clone repo.

    git clone [email protected]:meows/party.git && cd party
    
  2. Install npm dependencies.

    npm i
    
  3. Setup database schema & generate client.

    npx prisma db push
    

    Run the DB seed script seed.ts for initial data. The script is idempotent so you can run it again to reset the DB data.

    npx prisma db seed
    

Running DB and App

  1. Start the dev server in another terminal window, then navigate in a new browser tab to localhost:3000.

    npm run dev
    

    Next.js will launch a dev server accessible over your local network. You can access the dev server from another device on the same local network at hostname.local:3000. Get your hostname by typing hostname into the terminal.

  2. Launch a db explorer. This command also confirms that prisma is working. This command should open a brower window at localhost:5555.

    npx prisma studio
    

Schema Updates

If schema.prisma receives updates, then you can push to a connected DB with:

# update db & generate client
npx prisma db push

Then run the idempotent seed script for initial dummy data:

npx prisma db seed

Git Workflow

  • Everyone works on their own branch and does a pull request to merge to main.
  • Prefer squash commits unless your commits are very clean and atomic.
  • A branch should be free of conflicts from main before merging.

Recommended VS Code extensions

party's People

Contributors

meows avatar elwerro avatar hamirmahal avatar alextol avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  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.