Programowanie funkcyjne 2024/SL
app | ||
src | ||
test | ||
.gitignore | ||
CHANGELOG.md | ||
LICENSE | ||
package.yaml | ||
README.md | ||
Setup.hs | ||
stack.yaml | ||
stack.yaml.lock | ||
user-management.cabal | ||
users.db |
User Management System
This project provides a system for managing users, including adding, listing, finding, and deleting users.
Prerequisites
Before running the project, make sure you have the following installed:
- Haskell Stack: a tool for managing Haskell projects
- SQLite: a lightweight database system
Getting Started
-
Clone the repository:
git clone https://github.com/your-username/user-management.git
-
Navigate to the project directory:
cd user-management
-
Build the project:
stack build
-
Run the application:
stack exec user-management-exe
Usage
The application provides the following commands:
add-user <name> <email> <password>
: adds a new user to the databaselist-users
: lists all users in the databasefind-user <name or email>
: finds users with a matching name or emaildelete-user <name>
: deletes a user from the database
Contributing
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
License
This project is licensed under the MIT License.