Welcome to PastyBox โ a seamless and secure platform designed for developers, coders, and creatives to easily store, share, and manage their code snippets. Whether you're a beginner or a seasoned coder, PastyBox is here to simplify your workflow and help you get your code out there with a breeze.
Built with the power of Laravel, TailwindCSS, and a sprinkle of love for the developer community, PastyBox is your new best friend for sharing code. Letโs get this thing up and running in no time!
Ready to dive in? Here's how to get PastyBox running locally on your machine:
Open up that terminal and clone the repo to your local machine:
git clone https://github.com/EngMohammedKareem/pastybox.git
cd pastybox
Once inside your project directory, install all the required dependencies using Composer and NPM:
# Install PHP dependencies
composer install
# Install front-end dependencies
npm install
Copy the example environment file and configure your database:
cp .env.example .env
Open the .env
file and update your database connection. For SQLite (the default):
DB_CONNECTION=sqlite
DB_DATABASE=database/database.sqlite
Make sure the database directory exists and is writable:
mkdir -p database
touch database/database.sqlite
Run the database migrations to set up your tables, and optionally seed the database with some test data:
php artisan migrate --seed
Once everythingโs set up, launch the local development server:
php artisan serve
You can now access PastyBox by going to http://127.0.0.1:8000 in your browser.
Only authenticated users can post their code snippets! ๐
auth
middleware to restrict access to pasty creation, editing, and deletion.We also use Gates to ensure that users can only perform actions on their own pasties. If you're trying to mess with someone else's code, well... better luck next time. ๐
Hereโs a sneak peek at some ideas for where PastyBox could go next:
Contributions are welcome! If youโve got ideas to make PastyBox even better, feel free to fork the repo, make your changes, and submit a pull request. If you spot bugs or want to add new features, open an issue and let's work together to make this project even more amazing.
git checkout -b feature-name
)git commit -am 'Add new feature'
)git push origin feature-name
)PastyBox is open-source and available under the MIT License.
Have questions or need help? Hit me up:
I'm excited to have you on board as part of the PastyBox community. Donโt forget to share your favorite pasties with your friends (and letโs make code sharing cool again).