hw3

Running the app

  1. Install dependencies
yarn install
  1. Create a .env.local file in the root of the project and add a valid Postgres URL. To get a Postgres URL, follow the instructions here.

This is just an example, you should replace the URL with your own.

POSTGRES_URL="postgres://postgres:postgres@localhost:5432/twitter"
  1. Run the migrations
yarn migrate
  1. Start the app
yarn dev

Perfect

使用者點選「我想參加」後,可以在活動頁面點擊(或利用其他操作方式,如拖曳)選擇自己有空的時段,並可以檢視哪些時段有多少人可以參加。