TeamScope is a full-featured system for managing employees and projects, built with React (frontend) and Laravel (backend). It includes a dynamic dashboard that provides real-time insights such as:
- Total number of employees
- Unique roles
- Number of registered projects
- Sum of project values
🛠️ This project is functional but still open to improvements and optimizations.
- ✅ Full CRUD for employees
- ✅ CRUD for projects (with budgets/values)
- ✅ GitHub and LinkedIn profile integration
- ✅ Interactive dashboard with live statistics
- ✅ Responsive and modern interface
- ✅ RESTful API integration between backend and frontend
git clone https://github.com/gui-silva-github/teamscope.git
composer install
npm install
cp .env.example .env
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=teamscope
DB_USERNAME=root
DB_PASSWORD=
composer run dev
APP_URL: http://localhost:8000
.env
config/database.php
php artisan make:migration create_posts_table
-> Setar os campos
php artisan migrate
-> Criando a tabela
php artisan make:model Post
-> Preencher fillable
php artisan make:controller PostController --resource
-> Fazer o return do index com: return Inertia::render('Posts', [ 'posts' => Post::all() ]);
-> Usar o resource para fazer CRUD
Route::resource('posts', PostController::class);
pages/Posts.tsx:
-> Usar Head, router e usePage (GET e DELETE)
components/PostFormModal.tsx:
-> Usar router e instância de Post (PUT e POST)