Welcome to the git repository for Cogify.Social, the ultimate interactive web platform designed to Chatgpt-4 based conversation Free always, no ads and Whatsapp,telegram usability. Powered by cutting-edge technologies like Next.js 13, React, TypeScript, and more, this platform offers users a rich blend of features including Chatgpt-4 conversations, AI-driven image generation, insightful image analysis, and lifelike text-to-speech functionalities and much more. Dive into a world where technology meets creativity, fully live-hosted and free to use, backed by an open-source community's excellence.
Check out Cogify.Social live in action! Visit: Cogify.social
To set up your own version of Cogify.Social, follow these steps:
Clone the repository:
git clone https://github.com/Shubham-sharma8/saas
cd saas
Install dependencies:
npm i
Environment Variables:
Copy the .env.example
file to .env
and update the environment variables as per your requirements.
cp .env.example .env
Run the prisma for database:
npx prisma db generate
npx prisma db push
Run the development server:
npm run dev
The site should now be running on http://localhost:3000!
MYSQL Database:
Cogify.Social uses a postgres(insitially mySQL) database to manage data. Here is a step-by-step guide to help you create and host the database on an Ubuntu server:
Make sure you have Ubuntu server set up and you have administrative (sudo) rights.
sudo apt update
sudo apt install mysql-server
This step ensures that MySQL is installed and running on your system.
sudo systemctl status mysql
Log into MySQL shell as the root user:
sudo mysql
Once inside MySQL Shell, you might want to create a new user and grant privileges for better security and management. Execute the following SQL commands:
SELECT user FROM mysql.user;
CREATE USER 'USERNAME'@'%' IDENTIFIED BY 'PASSWORD';
GRANT ALL PRIVILEGES ON *.* TO 'USERNAME'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;
EXIT;
This command fetches the public IP of your server, which you might need for accessing your MySQL server remotely.
curl ifconfig.me
By default, MySQL doesn't allow connections from remote hosts. Edit the MySQL config file to change this:
sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf
In the editor, look for the line that says bind-address
and change its value from 127.0.0.1
to 0.0.0.0
.
sudo systemctl restart mysql
Your MySQL database is now set up and configured to accept connections remotely using the public IP of your server.
βΉοΈ Note: For security purposes, it is highly recommended to use a firewall to restrict access to your MySQL server and to use SSL for data encryption if your database will be accessed over the internet.
π₯Ή Try Superbase For postres
β For cloud server like azure and AWS etc: Open port 3306, 80 TCP.
πYour database URL: DATABASE_URL= mysql://USERNAME:PASSWORD@YOURSERVERIP:3306/sample?usessl=true
πInvalid Website: If you getting this error in your button right. Create an account with Crisp and update components/crisp-chat.tsx with your credentials.
We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's:
Feel free to contribute or check our contribution guidelines for more details.
This project is licensed under the MIT License - see the LICENSE.md file for details.
Join our dynamic community and start contributing. For more information, or to join our team, please visit Join-us.
We're excited to see how you use and enhance Cogify.Social. Get started today and unleash your creativity! π Cogify.social