Skip to content

Stenli79/demo

Repository files navigation

Demo Dashboard

Project Description

The project is a demo dashboard system built with Laravel 7. The features of this project include

  1. Registration and Authentication of users.
  2. Manage dashboard grid links
  3. Manage links with CRUD.
  4. Email notification after registration - This features is disabled for fastest registration.

Project Setup

Cloning the GitHub Repository.

Clone the repository to your local machine by running the terminal command below.

git clone https://github.com/Stenli79/demo.git

Setup Database

Create your a MySQL database and note down the required connection parameters. (DB Host, Username, Password, Name)

Create a copy of your .env file

Run the following command

cp .env.example .env

Set APP_URL

If your project url looks like: example.com/sub-folder Then go to my-project/.env And modify this line:

  • APP_URL =

To make it look like this:

This should create an exact copy of the .env.example file. Name the newly created file .env and update it with your local environment variables (database connection info and others).

Install Composer Dependencies

Navigate to the project root directory via terminal and run the following command.

composer install

Install NPM Dependencies

While still in the project root directory via terminal, run the following command.

npm install

Generate mixing and assets

npm run dev

Generate an app encryption key

php artisan key:generate

Migrate the database

php artisan migrate

or run database migration and seed

php artisan migrate:refresh --seed

Testing

Create a copy of your .env.testing file

Run the following command

cp .env.testing.example .env.testing

Generate an app encryption key

Run the following command

php artisan key:generate --env=testing

Setup test database

Run the following commands

touch database/test.sqlite

Migrate the test database with seeds

Run the following commands

php artisan migrate:fresh --seed --env=testing

Run tests

./vendor/bin/phpunit

Usage

Open your browser with address: http://example.com
Click "Login" on sidebar menu and log in with credentials:

Demo

Open your browser with address: http://demo.stenli.net

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published