Welcome to the Maven Ecommerce Project repository, a comprehensive ecommerce website development initiative for a fictional ski goods retailer!
- Website URL: Maven.com
Must be logged in as an admin first to view the admin dashboard - click admin dashboard button in nav bar after signing in
- Admin Dashboard URL: Maven.com/admin
-
Admin Login:
- Email: admin@mavenecommerce.com
- Password: SecureAdminPassword123!
-
Sample User Login:
- Email: user@example.com
- Password: SampleUserPassword!
- Objective: Develop a user-friendly platform for online purchase of ski equipment and related products.
- Business Domain: Focused on the ski industry, catering to both casual and avid skiers.
- Scope: Fully functional ecommerce website with features like user account management, product browsing, secure checkout, and order tracking.
- Target Audience: Skiing enthusiasts of all levels.
- Backend Framework: Laravel
- Version Control: Git
- Task Tracking Tool: Trello
- Software Engineering Process: Agile methodology.
- Task and Project Tracking: Trello for comprehensive task management and progress tracking.
-
Clone the repo
git clone https://github.com/EddiePoulter/Ecom-Maven.git
-
Install Composer packages and enable the required extensions within the php folder i.e. sqlite
composer install
-
Copy the environment file & edit it accordingly
cp .env.example .env
-
Ensure that the
DB_CONNECTIONin your.envfile is set tosqlite.Create an empty database file. You can do this manually or by running:
type nul > database\database.sqlite
-
Generate application key
php artisan key:generate
-
Create Database then migrate and seed
php artisan migrate --seed
-
Linking Storage folder to public
php artisan storage:link
-
Serve the application
php artisan serve
Production server is making usage of MySQL however as tested SQLlite is much more efficient for local systems.
To view and interact with the SQLite database tables directly from the command line, follow these steps to set up the SQLite command-line tool on Windows:
-
Download SQLite:
- Go to the official SQLite website: SQLite Downloads
- Download the latest bundle for Windows.
-
Extract and Add to PATH:
- Extract the downloaded ZIP to
C:\sqlite. - Add
C:\sqliteto the system PATH.
- Extract the downloaded ZIP to
-
Open PowerShell:
- Open a new PowerShell window.
-
Navigate to your project directory.
-
Open SQLite Prompt:
- Run
sqlite3 database.sqlite.
- Run
-
Execute Commands:
- Use SQLite commands (
sqlite>).
- Use SQLite commands (
-
Exit:
- To exit, run
.exit.
- To exit, run
Remember, you can also run sqlite3.exe directly if needed.
Laravel is built with testing in mind. In fact, support for testing with PHPUnit is included out of the box, and a phpunit.xml file is already set up for your application.
You may run all of the tests for your application using the test Artisan command.
php artisan testUnit tests are typically run in isolation from your application and its dependencies. When running unit tests, Laravel won’t load your database or other services. Here’s how you can run them:
php artisan test --filter UnitIntegration tests provide a way to test your application’s “integration” with its environment and third-party services. Here’s how you can run them:
php artisan test --filter IntegrationRemember to replace Unit and Integration with the actual names of your test classes.
For more information, please refer to the Laravel testing documentation.
