$$$$$$$\ $$$$$$\ $$$$$$$$\ $$$$$$\
$$ __$$\ $$ ___$$\\__$$ __| $$$ __$$\
$$ | $$ |\_/ $$ | $$ | $$$$$$\ $$$$\ $$ |
$$$$$$$ | $$$$$ / $$ |$$ __$$\ $$\$$\$$ |
$$ __$$< \___$$\ $$ |$$ | \__|$$ \$$$$ |
$$ | $$ |$$\ $$ | $$ |$$ | $$ |\$$$ |
$$ | $$ |\$$$$$$ | $$ |$$ | \$$$$$$ /
\__| \__| \______/ \__|\__| \______/
Create a straightforward yet resilient web app for user account management. This encompasses features like user registration, logging in, browsing, modifying, and removing user profiles.
Ensure PHP version 8.1 or newer is installed. Node.js version 12.0 or higher is also required.
-
Duplicate the project repository.
-
Navigate to the project's root directory. Move the .env.example file to
.envusing the commandmv .env.example .env -
Execute
composer install. -
Generate the encryption key with
php artisan key:generate --ansi -
Create a database
named: usersystemTo create the database, go to your cmd, access mysql and enter your login, enter the command and a sqlite database will be created. -
Migrate the database with
php artisan migrate --seed -
Duplicate .env.example and rename it to .env, then adjust the parameters.
-
Start the project with
php artisan serveIn the case of you get error of the secretkey (could not create token) usephp artisan jwt:secretin a new terminal andJWT secret key set successfully.and rename ur password in the .env with ur sql password -
Open a new terminal window and navigate to the project's root directory.
-
Execute
npm install. -
Launch the Vite server for Laravel frontend with
npm run dev.
- Navigate to
frontendfolder using terminal using cd - Run
npm installto install vue.js project dependencies - Copy
frontend/.env.exampleintofrontend/.envusingcp .env.example .envand specify API URL - Start frontend by running
npm run dev - Open http://localhost:3000
To execute tests using PhpUnit, follow these steps:
Open a terminal.
Navigate to the Laravel project's root directory.
Run php artisan test to execute all tests.
Tests located in the tests\Feature\Api folder are relevant to the frontend.
- use
php artisan db:seed --class=UsersTableSeederin the root project. - Open http://localhost:3000 in your browser.
- In the login use:
email: admin@example.com password: admin123 - Click the "Login" button.
- You will be redirected to the Dashbopard administration panel.
- In the sidebar you can go to users.
- Here you can view, create, update and delete users based on your administrator permissions. Explore the different functionalities available in the panel to manage users.
If the email provided in the .env or in the requests is restricted by CORS, please notify me, and I'll update the project accordingly.
The project is open-sourced software licensed under the MIT license.