Skip to content

KAT-ITB-2024/social

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Social App

This repository is developed by using T3 Stack

Requirements

Run this repository on WSL

How to Run

  1. Clone this repository

    $ git clone https://github.com/KAT-ITB-2024/social.git

    or

    git clone [email protected]:KAT-ITB-2024/social.git
  2. Change the current directory to social

    cd social
  3. Copy .env.example file and rename it to .env

  4. Install all dependencies

    yarn install
    
  5. Run the application

    yarn dev
    

How to Seed Database

  1. Customize the database URL
   DATABASE_URL="postgresql://{username}:{password}@localhost:5432/{database name}"
  1. Create new database (use the same name as you wrote in DATABASE_URL)
   psql -U postgres

   create database <database name>
  1. Run the migration
   yarn db:migrate

Once you've run the migration, you can try to check on the database.

   \c <database name>

   \dt

Expected output: your database must contain few tables if the mirgation is successful.

  1. Run the seeding function
   yarn db:seed

Once you've run the seeding command, check tables inside your database to make sure that the table is not empty (specially the users table)

   select * from "users"

Developer's Guide

Make sure you've read our Developer's Guide

IMPORTANT NOTE

Jangan pernah push langsung ke master / developement / staging tanpa izin kabid / wakabid / kadiv / wakadiv

Kalo udah ke push gimana?

Chat kabid / wakabid / kadiv / wakadiv langsung yaa

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages