User Management System API
The project entails developing a User Management System API using Laravel. This API will facilitate various operations related to user profiles within an application, including creating, updating, viewing, and deleting users.
-
Clone the repository to your local machine:
git clone https://github.com/cybernerdie/apexnetwork-user-management-system-api.git
-
Navigate to the project directory:
cd apexnetwork-user-management-system-api
-
Install dependencies:
composer install
-
Copy the
.env.example
file to.env
and configure your environment variables:cp .env.example .env
-
Generate application key:
php artisan key:generate
-
Set up Passport:
php artisan passport:install
-
Create a new database.
-
Update the
.env
file with your database credentials:DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_database_name
DB_USERNAME=your_database_username
DB_PASSWORD=your_database_password
-
Run migrations to create the necessary tables:
php artisan migrate
-
Seed the database with sample data:
php artisan db:seed
-
To start the server, run:
php artisan serve
-
To run tests, execute:
php artisan test