Skip to content

infoshareacademy/CoWork-Connect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoWork-Connect

CoWork-Connect is a Django-based web application designed for booking desks in a coworking space. This application allows users to view available desks, make reservations, and manage their bookings. The admin panel enables administrators to manage users, desks, reservations, contact information, terms of service, and the main page content.

Table of Contents

Prerequisites

  • Python 3.10 or higher
  • Celery 5.0.5 or higher
  • Redis 3.5.3 or higher
  • Git
  • Virtualenv (recommended)

Installation

Linux

  1. Clone the repository:

    git clone https://github.com/yourusername/CoWork-Connect.git
    cd CoWork-Connect/Django-CoWork-Connect
  2. Create and activate a virtual environment:

    python3 -m venv venv
    source venv/bin/activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. Run migrations:

    python manage.py migrate

Windows

  1. Clone the repository:

    git clone https://github.com/yourusername/CoWork-Connect.git
    cd CoWork-Connect\Django-CoWork-Connect
  2. Create and activate a virtual environment:

    python -m venv venv
    .\venv\Scripts\activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. Run migrations:

    python manage.py migrate

Mac

  1. Clone the repository:

    git clone https://github.com/yourusername/CoWork-Connect.git
    cd CoWork-Connect/Django-CoWork-Connect
  2. Create and activate a virtual environment:

    python3 -m venv venv
    source venv/bin/activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. Run migrations:

    python manage.py migrate

Importing Data

To import the initial set of desks, you need to run the import_desk.py script:

python manage.py runscript import_desk

Running the Application

  1. Start the development server:

    python manage.py runserver
  2. Open another terminal and start the Celery worker:

    celery -A CoWorkConnect worker --loglevel=info
  3. Create a .env file:

    In the folder /CoWork-Connect/Django-CoWork-Connect/, create a file named .env with the following content:

    SECRET_KEY= write here your secret key
    EMAIL_HOST_USER='write here host email'
    EMAIL_HOST_PASSWORD='write here host password'
    DEFAULT_FROM_EMAIL='write here default from email'
    

Admin Panel

The admin panel allows you to manage desks, users, reservations, contact information, terms of service, and the main page content.

  1. Create a superuser:

    python manage.py createsuperuser
  2. Access the admin panel:

    Open your browser and go to http://127.0.0.1:8000/admin/ and log in with your superuser credentials.

  3. Screenshots:

    • Admin Login Page
    • Admin Dashboard
    • Managing Desks
    • Managing Users
    • Managing Reservations
    • Editing Contact Information
    • Editing Terms of Service
    • Editing Main Page Content

Usage

  1. Home Page:

    Unregistered and not logged-in users can view the home page and read about CoWork Connect.

    Home Page

  2. Offer Page:

    Unregistered and not logged-in users can view available desks on the offer page.

    Offer Page

  3. Registration and Login:

    Users need to register and log in to make a reservation.

    Registration Page Login Page

  4. Reservation:

    After logging in, users can book a desk by selecting the desired time period.

    Reservation Form

  5. User Reservations:

    Users can view their reservations on the 'My Reservations' page and cancel them if necessary.

    User Reservations Page

  6. Email Notifications:

    Users receive email notifications upon registration, reservation, and cancellation.

    Email Confirmation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •