-
Install dependencies
yarn
-
Get Pusher credentials and Setup Google credentials
Please refer to the Google Setup
Please refer to the Pusher Setup section in Notion Clone README for more details.
-
Create
.env.local
file in the project root and add the following content:
POSTGRES_URL=postgres://postgres:postgres@localhost:5432/traveler
PUSHER_ID=
NEXT_PUBLIC_PUSHER_KEY=
PUSHER_SECRET=
NEXT_PUBLIC_PUSHER_CLUSTER=
AUTH_SECRET=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
NEXT_PUBLIC_BASE_URL=http://localhost:3000
- Start the database
docker compose up -d
- Run migrations
yarn migrate
- Start the development server
yarn dev
- Open http://localhost:3000 in your browser
- 可以新增Plan
- 在這裡可以選擇要編輯的Plan
- 之後還是可以修改Plan的name以及description
- 可以新增行程
- 在這邊可以查看行程並且可以重新編輯
- 可以分享給你的好友並且可以同步即時編輯
- 最後可以輸出到你的Google Calender