Firmlink is a Django-based platform that allows users to sign up and log in as either customers or companies. The project includes role-based authentication, custom user management, and email-based login, with a focus on flexibility and scalability.
- Role-based User Authentication: Users can register as either
customersorcompanies. - Custom User Model: The project uses a custom
Usermodel that extends Django'sAbstractUserto handle email-based login and custom user roles. - User Registration: Separate forms and views for customer and company sign-ups.
- Email Login: The login system authenticates users via email instead of the default username.
- Company and Customer Profiles: Customers have a birthdate, and companies have a field of service and rating.
-
Clone the repository:
git clone https://github.com/Cherrypick14/firmlink.git
-
Navigate to the project directory:
cd firmlink -
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
-
macOS/Linux:
source venv/bin/activate -
Windows:
venv\Scripts\activate
-
-
Install the required dependencies:
pip install -r requirements.txt pip freeze requirements.txt
-
Apply migrations:
python manage.py migrate -
Create a superuser:
python manage.py createsuperuser -
Run the development server:
python manage.py runserver -
Contribution
Feel free to fork the repository, make improvements, or report issues. Contributions are welcome!
-
LICENSE
This project is licensed under the MIT License