This project is the result of the PHP training at Alura, where topics related to language security and functionality were covered. The project includes the implementation of sessions for login, secure password handling, file uploads with security measures, and the use of APIs for accessing new routes and searching for videos in JSON format.
- Login system with sessions
- Secure password handling
- File uploads with security measures
- Use of APIs for accessing new routes and searching for videos in JSON format
Warning: This application is designed for learning purposes. Therefore, some features are not completely finished. The database folder contains some "helper" files that are designed to test certain features and facilitate others.
- Clone the repository
- Set
.env
- Prepare Database
- Set up a local PHP server or use a hosting service
- Create a User
- Run the application and access the login functionality by trying to edit or create some video
Run
cp .env.example .env
Then edit the created file
Create database:
php database/create-db.php
Seeding:
php database/seed-videos.php
To create a user, you can run:
php database/insert-users.php your_email your_password
Replace your_email
with your user email and your_password
with your user password.
Feel free to contribute with suggestions, improvements, or fixes. Just fork the repository, implement the changes, and send a pull request.
This project is licensed under the MIT License - see the LICENSE file for more details.