Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sustained/laravel-forum
A forum built using Laravel, Vue and Vuetify.
https://github.com/sustained/laravel-forum
forum laracasts laracasts-forum-series laravel laravel-forum laravel5 php php-7 postgres resume vue vuejs vuetify
Last synced: about 1 month ago
JSON representation
A forum built using Laravel, Vue and Vuetify.
- Host: GitHub
- URL: https://github.com/sustained/laravel-forum
- Owner: sustained
- Created: 2018-12-03T22:56:14.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-12T10:47:18.000Z (almost 6 years ago)
- Last Synced: 2024-09-28T19:40:57.346Z (about 1 month ago)
- Topics: forum, laracasts, laracasts-forum-series, laravel, laravel-forum, laravel5, php, php-7, postgres, resume, vue, vuejs, vuetify
- Language: PHP
- Size: 988 KB
- Stars: 0
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# laravel-forum
- [Project Setup](#project-setup)
- [Project Information](#project-information)## Project setup
If you'd like to check this out locally, then follow the instructions below.
### Clone repository
First clone the repository, of course:
```bash
git clone [email protected]:sustained/laravel-forum.git
cd laravel-forum
```### Initialise environment
Next you'll want to make a copy the example environment file:
```bash
cp .env.example .env
```### Configure database
Now edit the `.env` file and configure the database.
If you're using **Postgres** with (IDENT authentication), like me, then all you'll need is this:
```dotenv
DB_CONNECTION=pgsql
DB_DATABASE=laravel_forum
```### Create the database
Of course, you'll need to create the database as well as grant privileges:
```
[padda@aurora ~]$ psql postgres
postgres=> CREATE DATABASE laravel_forum;
CREATE DATABASE
postgres=> GRANT ALL PRIVILEGES ON DATABASE laravel_forum TO padda;
GRANT
```If you don't have Postgres setup or are having issues, or you'd simply rather use SQlite then use this configuration instead:
```dotenv
DB_CONNECTION=sqlite
DB_DATABASE=/absolute/path/to/project/database/database.sqlite
```And then create the database, again:
```bash
touch database/database.sqlite
```### Run migrations
Now you can run the migrations:
```bash
php artisan migrate
```### Good to go
Now you should be good to go - just run the development server:
```bash
php artisan serve --host=forum.localhost
```---
## Project Information
### What is this?
This is me following along with the (paid) Laracasts series [Let's Build a Forum with Laravel and TDD](https://laracasts.com/series/lets-build-a-forum-with-laravel).
Consider it a part of my résumé.
### Why this series?
I've been learning PHP and Laravel lately (as well as relearning PostgreSQL, Redis, Vue etc.) and I think I finally feel confident enough to tackle a _real_ project.
Also, I'd like to learn more about Test Driven Development (don't have much experience with testing) so this series seemed perfect.
### How will this be different?
Instead of me just blindly copying the code each episode, instead I'll be trying to change things as much as possible to align with my own preferences.
For instance, I think I'll use this as an opportunity to learn Vuetify (whereas the tutorial I believe uses Bootstrap).
I'll probably try to implement my own ideas and add my own features too, in time.