This is a basic API built with Laravel to feed announcements to any SPA application
- Ubuntu 22.04
- PHP 8.1^
- Apache 2.4
- Mysql 5.7.^
- NodeJS ^latest | ^14
- Redis
- MongoDB 3.6
- API: Laravel 10
- Frontend: React 17.02^ | Visit the Frontend to setup local connection.
Install the following base dependencies on your computer:
- Docker - latest
NOTE: For Windows systems you may need to install XAMPP
- PHP - See infrastructure - will be used to install php dependencies (optional)
-
NodeJS - See infrastructure - will be used to install js dependencies and build the js app (optional)
-
NVM | Node Version Manager - Node Version Manager is a valuable tool for controlling your Node version for development. (optional) Install Guide
-
Yarn - Install Yarn | Or you can just use NPM
- Navigate to project directory
- Configure environment:
cp .env.local.example .env
- customize if needed - Install php dependencies:
composer install
- Set up application:
sail up -d
- Set application key:
./vendor/bin/sail artisan key:generate
|sail artisan key:generate
- Run database migrations:
./vendor/bin/sail migrate
|sail artisan migrate
- Seed the database:
./vendor/bin/sail artisan db:seed
|sail artisan db:seed
-- this will create 20 dummy announcements