Skip to content

adit4443ya/WorkHub-Pro

 
 

Repository files navigation

Sure, here's an attractive and effective version of the README file with detailed steps, bulletins, commands, and proper structuring:

WorkhubPro ERP System

📱 Setting up the Project

🐘 Setting up PostgreSQL

  1. First, pull the Docker image of PostgreSQL 15:
docker pull postgres:15-alpine
  1. Use the provided Makefile for PostgreSQL operations:
  • Initialize the image for local development:
make postgresinit
  • Open the PostgreSQL console (psql):
make postgres
  • Create the database for users:
make createdbusers
  • Drop the users database:
make dropdbusers
  • Open the Bash console within the PostgreSQL container:
make bash
  1. Using the PostgreSQL console (psql):
  • List all available databases:
root=# \l
  • Connect to a specific database:
root=# \c <your_database_name>
  • Show all relations (tables) in the current database:
root=# \dt
  • View all records in a table:
root=# SELECT * FROM <table_name>;
  • Quit the PostgreSQL console:
root=# \q

⚠️ Troubleshooting PostgreSQL Issues

  1. If you encounter an SSL Enabled error:
  • Use the Bash console:
make bash
  • Navigate to the PostgreSQL data directory:
f92622037df6:/# cd /var/lib/postgresql/data
  • Check the SSL setting:
f92622037df6:/# cat postgresql.conf | grep ssl
  • If the first line is not ssl = off, uncomment the line # ssl = off:
f92622037df6:/# vi postgresql.conf
  • Demote yourself to a normal user and restart the PostgreSQL service:
f92622037df6:/# su - postgres
f92622037df6:~$ pg_ctl restart
  • If the Docker image has stopped running, restart it from Docker Desktop.

  • Try using the PostgreSQL service again. It should work now.

🚀 Running the Services

💬 Chat Service

cd .\Backend\Chat_service\cmd\
go run main.go

📋 WorkhubServices

cd .\Backend\Workhub_service\cmd\
go run main.go

🔐 Authentication Services

cd .\Backend\Authentication_service\cmd\
go run main.go

📲 Android App

  1. Open the project in Android Studio.
  2. Select an emulator or connect a physical device.
  3. Build the Gradle files.
  4. Run the app.

🔍 Additional Information

👥 Project Members

The WorkhubPro ERP System was developed by a dedicated team of contributors:

Feel free to reach out to any of the project members for more information or collaboration opportunities.

About

Project and Task Management Solution

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 78.6%
  • Go 21.2%
  • Makefile 0.2%