This guide provides step-by-step instructions to set up and run the project on MacOS and Windows.
Before starting, ensure you have the following installed:
✅ MongoDB (Download & Install)
✅ Composer (Download & Install)
✅ Node.js & NPM (Download & Install)
✅ PHP 8+ (Download & Install)
✅ Laravel Valet (MacOS only) (Installation Guide)
git clone https://github.com/rafcy/test-LW.git
cd your-repositoryRun the following command to install PHP and NPM dependencies:
composer install
npm ciCopy the .env.example file and update it:
cp .env.example .envModify the Mailchimp and/or MongoDB database variables to yours.
php artisan key:generateMake sure MongoDB is running before proceeding.
For MacOS, you can start MongoDB using:
brew services start mongodb-communityFor Windows, open MongoDB Compass or run:
mongod --dbpath="C:\data\db"php artisan migratevalet link project-name
valet secureVisit: https://project-name.test
php artisan serveVisit: http://127.0.0.1:8000
npm run devIf you would like to watch the functionalities of the website, please watch the following demo.
To run PHPUnit tests:
php artisan test