Skip to content

erikvlcak/nette-users

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Users Database in Nette Framework + Bootstrap CSS

Project aimed at basic opeations with database.

Core features:

  • Registration, login and logout of users via forms utilizing Nette form verification.
  • Authentication of users for login purpose.
  • Utilization of SimpleIdentity to display the currently signed-in user and prevention from deleting signed-in user.
  • Use od RequireLogin trait to ensures that certain actions or presenters can only be accessed by logged-in users. If a user is not logged in, they are redirected to the sign-in page.
  • Prevention of multiple database entries sharing identical username and/or email.
  • Model UsersFacade encapsulating the business logic related to user management and provide a clean API for interacting with the users table in the database (add, edit and delete).
  • Use of Contributte Datagrid for visualization of data stored in the database.
  • Responsive design with Bootstrap CSS Framework.

Requirements

This Web Project is compatible with Nette 3.2 and requires PHP 8.1.

Installation

To install the Web Project, Composer is the recommended tool. If you're new to Composer, follow these instructions. Then, run:

git clone https://github.com/erikvlcak/nette-users
cd nette-users
composer install

Database

Configure access to MySQL database in the config/local.neon file:

database:
	dsn: 'mysql:host=127.0.0.1;dbname=some-name'
	user: root
	password: ''

Then, create the users table using SQL statement in the database/mysql.sql file.

Web Server Setup

To quickly dive in, use PHP's built-in server:

php -S localhost:8000 -t www

Then, open http://localhost:8000 in your browser to view the welcome page.

For Apache or Nginx users, configure a virtual host pointing to your project's www/ directory.

Important Note: Ensure app/, config/, log/, and temp/ directories are not web-accessible. Refer to security warning for more details.

About

Database of users in Nette Framework

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published