_News Aggregation APP service built on Laravel for the backend and NextJs 13(React.Js) on the frontend
frontend
- This Folder contains the frontend NextJs codebackend
- Ths folder contains the Laravel API backend Code
master
- Branch off it. Must be stable.dev
- For Development
- Docker if you are going to use the docker based setup
- PHP8.2
- MySQL 8.0+
- Composer installed.
cp .env.example .env
- Popuplate Your
.env
file with the keys and databases specifics as specified in the configuration section. composer install
php artisan key:generate
php artisan migrate
php artisan serve
- The detailed setup for the backend and the frontend are each in the respective backend and frontend README files in the folders
- Add your Env variables for each of the projects
cp .env.example .env
- Set the database hostname in
.env
likeDB_HOST=laranews-db
- Run
docker compose --env-file path/to/env/file_with_db_credentials
to spin up the services. - Forexample
docker compose --env-file ./config/.env.db up -d
if the config file is stored in the config directory. - If the container starts, then run the following commands to install composer and migrate db
docker exec -it laranews-api composer install
docker exec -it laranews-api php artisan key:generate
docker exec -it laranews-api php artisan migrate --seed
This Project is open sourced software licensed under the MIT license.