Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pinkary-project/pinkary.com
Create a landing page for all your links and connect with like-minded people without the noise.
https://github.com/pinkary-project/pinkary.com
laravel php social-network
Last synced: 22 days ago
JSON representation
Create a landing page for all your links and connect with like-minded people without the noise.
- Host: GitHub
- URL: https://github.com/pinkary-project/pinkary.com
- Owner: pinkary-project
- License: agpl-3.0
- Created: 2024-03-13T20:29:35.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-10-01T21:26:02.000Z (about 1 month ago)
- Last Synced: 2024-10-01T23:42:22.636Z (about 1 month ago)
- Topics: laravel, php, social-network
- Language: PHP
- Homepage: https://pinkary.com
- Size: 6.03 MB
- Stars: 1,177
- Watchers: 66
- Forks: 279
- Open Issues: 47
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
------
> Telegram group: **[pinkary.com/telegram »](https://pinkary.com/telegram)**.
**Welcome to Pinkary!** Pinkary is a landing page for all your links and a place to connect with like-minded individuals without the noise.
Initially, it was created to help people share their links in a more organized way. In just 15 hours, we went from `composer create-project` to production, and after 24 hours, we reached over 1,000 users.
The source code still shows some signs of the rush; that's why we think **it's important to share it with you—so you can see how we've built it**, combining fast pace given the circumstances with the quality we always aim for.
Over time, we've managed to add more features, such as feed, explore, questions, likes, and more. We've also improved the design, added tests, and improved the overall quality of the code. There is still a lot to do, but most importantly, there is a huge opportunity to make this a **community-driven project**.
- Telegram group: **[pinkary.com/telegram »](https://pinkary.com/telegram)**
- Follow us on X at **[@PinkaryProject »](https://x.com/PinkaryProject)**
- Wish to contribute? Here is how:## Installation
Pinkary is a regular Laravel application; it's build on top of Laravel 11 and uses Livewire / Tailwind CSS for the frontend. If you are familiar with Laravel, you should feel right at home.
In terms of local development, you can use the following requirements:
- PHP 8.3 - with SQLite, GD, and other common extensions.
- Node.js 16 or more recent.If you have these requirements, you can start by cloning the repository and installing the dependencies:
```bash
git clone https://github.com/pinkary-project/pinkary.com.gitcd pinkary.com
git checkout -b feat/your-feature # or fix/your-fix
```> **Don't push directly to the `main` branch**. Instead, create a new branch and push it to your branch.
Next, install the dependencies using [Composer](https://getcomposer.org) and [NPM](https://www.npmjs.com):
```bash
composer installnpm install
```After that, set up your `.env` file:
```bash
cp .env.example .envphp artisan key:generate
```Prepare your database and run the migrations:
```bash
touch database/database.sqlitephp artisan migrate
```Link the storage to the public folder:
```bash
php artisan storage:link
```In a **separate terminal**, build the assets in watch mode:
```bash
npm run dev
```Also in a **separate terminal**, run the queue worker:
```bash
php artisan queue:work
```Finally, start the development server:
```bash
php artisan serve
```> Note: By default, emails are sent to the `log` driver. You can change this in the `.env` file to something like `mailtrap`.
Once you are done with the code changes, be sure to run the test suite to ensure everything is still working:
```bash
composer test
```If everything is green, push your branch and create a pull request:
```bash
git commit -am "Your commit message"git push
```Visit [github.com/pinkary-project/pinkary.com/pulls](https://github.com/pinkary-project/pinkary.com/pulls) and create a pull request.
## Tooling
Pinkary uses a few tools to ensure the code quality and consistency. Of course, [Pest](https://pestphp.com) is the testing framework of choice, and we also use [PHPStan](https://phpstan.org) for static analysis. Pest's type coverage is at 100%, and the test suite is also at 100% coverage.
In terms of code style, we use [Laravel Pint](https://laravel.com/docs/11.x/pint) to ensure the code is consistent and follows the Laravel conventions. We also use [Rector](https://getrector.org) to ensure the code is up to date with the latest PHP version.
You run these tools individually using the following commands:
```bash
# Lint the code using Pint
composer lint
composer test:lint# Refactor the code using Rector
composer refactor
composer test:refactor# Run PHPStan
composer test:types# Run the test suite
composer test:unit# Run all the tools
composer test
```Pull requests that don't pass the test suite will not be merged. So, as suggested on the [Installation](#installation) section, be sure to run the test suite before pushing your branch.
## Production
Pinkary is hosted on [DigitalOcean](https://www.digitalocean.com) and uses [Laravel Forge](https://forge.laravel.com) to manage the server and deployments. The server is running on Ubuntu 22.04 (LTS) x64 and is a 2 vCPUs 2GB / 25GB Disk droplet.
The only service we use is [Mailcoach](https://mailcoach.app) to manage the send emails. Besides that, SQLite is used as database driver, sessions driver, queue driver, cache driver, etc.
Server backups are done daily by Digital Ocean.
---
Pinkary is an open-sourced software licensed under the **[GNU Affero General Public License](LICENSE.md)**