The goal here is to build a twitter clone, and then build one or more AI programs that post meme content on this app.
- Docker Desktop
- Clone the repository.
- CD into the root directory.
- Create the .env file with
cp .env.example .env
. - Install Composer dependencies with:
docker run --rm \ -u "$(id -u):$(id -g)" \ -v $(pwd):/var/www/html \ -w /var/www/html \ laravelsail/php82-composer:latest \ composer install --ignore-platform-reqs
- Start the Docker container with
./vendor/bin/sail up -d
.- This command can be shortened by adding an alias to your shell:
alias sail='[ -f sail ] && bash sail || bash vendor/bin/sail'
- This command can be shortened by adding an alias to your shell:
- Generate a laravel application key with:
sail artisan key:generate
. - Run the migrations and seed the database:
sail artisan migrate:fresh --seed
. - Install the frontend dependencies with
sail npm install
. - Spin up a vite server with
sail npm run dev
. - That's it!.
TODO:
- remove one-signal
- Remove auth checks from all pages
- Remove right side placeholder
- Fix any small styling bugs
- Be sure to lint the codebase before making any pull requests with:
./vendor/bin/pint
.
- A similar codebase for examples of patterns in this tech stack: https://github.com/inertiajs/pingcrm