Skip to content

IslamZaoui/TwittChatApp

Repository files navigation

Logo

Twitt Chat App

This a simple project powered by by Sveltekit and Pocketbase

Appendix

This app will take the lead from Zuck and Musk to be the best chat app in the world of its amazing features like Simple, Laggy, and Vulnerable by default

Features

  • Simple
  • Laggy "Because of the lack of good pocketbase host"
  • Vulnerable "I really don't know if this app is protected enough"

Run Locally

Pocketbase

Clone the project

  git clone https://github.com/zicoding2/TwittChatApp.git

Go to the project directory

  cd TwittChatApp

Install dependencies

  npm install

Start the server

  npm run dev

Pocketbase

download Pocketbase here

Place the pocketbase file in the folder and run

  ./pocketbase serve

You should see this

  2023/07/14 14:36:54 Server started at http://127.0.0.1:8090
  ➜ REST API: http://127.0.0.1:8090/api/
  ➜ Admin UI: http://127.0.0.1:8090/_/

Go to http://127.0.0.1:8090/_/ register as an admin and import schema from pb_schema .json in the repo

Deployment

To deploy The Web App

1- Create a Vercel Account and link it with your GitHub

2- Select the repo that has this project

3- Configure then deploy, More info

note: don't forget to set the Environment Variables

To deploy PocketBase

check out this discussion

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

PUBLIC_POCKETBASE_URL

PRIVATE_KILLSWITCH set it to false

Acknowledgements

Feedback

If you have any feedback, please submit an issue or discussion

License

MIT