Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/spcbfr/bloodytwitter

For god's sake! bloody twittter?!
https://github.com/spcbfr/bloodytwitter

Last synced: 12 days ago
JSON representation

For god's sake! bloody twittter?!

Awesome Lists containing this project

README

        

# Bloody Twitter!
![image](https://github.com/spcbfr/BloodyTwitter/assets/77839865/5c1cecab-7ad2-4ddb-8284-ffaa0b2b6c26)

A few weeks ago (as of november 2023) I went through the Laravel Bootcamp to build a simple twitter clone, I loved it so much that I decided to remake it on my own fully unguided. in the process I added a bunch of features:

- Like functionality
- A profile page
- Authentication with username instead of email
- in-app notifications **(coming soon!)**

## How to use

Clone the repo

```bash
git clone https://github.com/spcbfr/BloodyTwitter.git

cd BloodyTwitter
```

Install [composer](https://getcomposer.org/download/) if you don't have it already, next install PHP dependencies.

```bash
composer install
```

laravel uses vite for HMR on the frontend, so go ahead and install the JS dependencies too.

```bash
npm install
```

Laravel has built-in migrations, to execute these migrations, first create the environment variable by copying the provided `.env.example` then run the laravel migrate command. note that the migrate command will create a new sqlite database in `BloodyTwitter/database/database.sqlite` if everything is done correctly.
```bash
cp .env.example .env

php artisan migrate
```

run the following command so that vite can generate our assets

```bash
npm run dev
```

Finally, open the `artisan` development server, you're all set now

```bash
php artisan serve
```