IPGuardian is simple Laravel and React based application that allows you to list your IP addressesand their audit logs.
- Docker
 - Docker Compose
 
- Clone the repository
 
[email protected]:nayeemdev/IPGuardian.git
- Run the docker compose command to build and run the containers
 
docker-compose up -d
- Run the api sh to get into the api container
 
docker-compose exec -it api sh
- Run the following commands inside the api container
 
cp .env.example .env
composer install
php artisan key:generate
php artisan migrate --seed
- Run the client sh to get into the client container
 
docker-compose exec -it client sh
- Run the following commands inside the client container
 
cp .env.example .env
- Run tests inside the API container
 
docker-compose exec -it api sh
php artisan test
- Demo user credentials
 
email: [email protected]
password: password
Note:Api will open at localhost:8000, Client app will run at localhost:3000
I have added a makefile to make the process easier. You can  run make help to see all the available commands.
- PHP8.2
 - Laravel 10
 - Laravel Sanctum
 - NginX
 - MySQL
 - React
 - TailwindCSS
 - SWR
 - React Router
 - Axios
 - Docker
 - Docker Compose
 
- Make sure you have the api and client container running
 - Open 
localhost:3000in your browser to see the client app - Login with the demo user credentials
 - Or register a new user and login
 - You can see the dashboard with a count card.
 - Create a new IP address from the CREATE NEW RECORD button
 - You can see the list of IP addresses in the dashboard
 - You can see the audit logs of an IP address by clicking the VIEW button
 - You can edit an IP address by clicking the EDIT button
 








