Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/henrikac/henrikac-portfolio-symfony
Personal portfolio site made with Symfony.
https://github.com/henrikac/henrikac-portfolio-symfony
php php8 portfolio symfony symfony6
Last synced: 8 days ago
JSON representation
Personal portfolio site made with Symfony.
- Host: GitHub
- URL: https://github.com/henrikac/henrikac-portfolio-symfony
- Owner: henrikac
- License: mit
- Created: 2022-09-04T13:47:16.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-27T19:25:07.000Z (almost 2 years ago)
- Last Synced: 2023-03-11T20:22:30.715Z (over 1 year ago)
- Topics: php, php8, portfolio, symfony, symfony6
- Language: PHP
- Homepage:
- Size: 265 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HenrikAC Symfony
## Requirements
- [PHP 8.1+](https://www.php.net/)
- [Node.js](https://nodejs.org/en/) and [pnpm](https://pnpm.io)
- [Docker](https://www.docker.com/) *(or PostgreSQL)*## Setup
Run `cp .env .env.local` and update `.env.local`.#### Client
```
$ pnpm install
$ pnpm build
```#### Server
```
$ composer install
```Make sure the database is created and running before running the following command
```
$ ./bin/console doctrine:migrations:migrate
```## Usage
Run `symfony serve -d` and then navigate to `localhost:8000`.The admin section can be found on `/admin`.
#### Fetch github repository data
To fetch and save your GitHub repository data to your database run the following command```
$ ./bin/console app:fetch:repositories
```*Tip:* Have a cron job run `php bin/console app:fetch:repositories` e.g. every 5 minutes to keep the data shown on the portfolio data up-to-date.
To set up a cron job that runs every 5 minutes simply run `crontab -e` and then add a line at the bottom of the file that opens
```
*/5 * * * * /usr/bin/php /path/to/your/project/bin/console app:fetch:repositories
```This cron job should now run every 5 minutes.
#### Create superuser
To create a superuser that is able to log in to the admin section simply run```
$ ./bin/console app:create:superuser
```and enter an email and a password.