/DevNation

Developer community forum built upon laravel framework

Primary LanguagePHP

Getting started

Installation

Please check the official laravel installation guide for server requirements before you start. Official Documentation

Clone the repository

git clone https://github.com/hacksdump/DevNation.git

Switch to the repo folder

cd DevNation

Install all the dependencies using composer

composer install

Copy the example env file and make the required configuration changes in the .env file

cp .env.example .env

Generate a new application key

php artisan key:generate

Generate a new JWT authentication secret key

php artisan jwt:generate

Run the database migrations (Set the database connection in .env before migrating)

php artisan migrate

Start the local development server

php artisan serve

You can now access the server at http://localhost:8000

TL;DR command list

git clone https://github.com/hacksdump/DevNation.git
cd DevNation
composer install
cp .env.example .env
php artisan key:generate
php artisan jwt:generate 

Make sure you set the correct database connection information before running the migrations Environment variables

php artisan migrate
php artisan serve

Folders

  • app/Models - Contains all the Eloquent models
  • app/Http/Controllers - Contains all the controllers
  • app/Http/Middleware - Contains the JWT auth middleware
  • config - Contains all the application configuration files
  • database/factories - Contains the model factory for all the models
  • database/migrations - Contains all the database migrations
  • database/seeds - Contains the database seeder
  • routes - Contains all the routes defined in web.php file
  • tests - Contains all the application tests

Environment variables

.env - Environment variables can be set in this file

Requirements for environment:

  • SQL connection variables
  • Google OAuth2 credentials