{"id":20411068,"url":"https://github.com/raihan2bd/chatgpt-go","last_synced_at":"2025-04-12T16:04:58.404Z","repository":{"id":162385715,"uuid":"619026947","full_name":"raihan2bd/chatgpt-go","owner":"raihan2bd","description":"NeuralChat is a cutting-edge chatbot project that allows users to chat with the state-of-the-art OpenAI chatbot, GPT-3.5, in a seamless and user-friendly manner.","archived":false,"fork":false,"pushed_at":"2023-04-01T13:35:33.000Z","size":495,"stargazers_count":10,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"dev","last_synced_at":"2025-03-26T10:36:09.912Z","etag":null,"topics":["chatbot","chatgpt","css","go","golang","html","javascript","neural-network","openai","postgresql"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raihan2bd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-26T03:20:48.000Z","updated_at":"2025-01-06T23:05:31.000Z","dependencies_parsed_at":"2023-07-07T08:01:02.578Z","dependency_job_id":null,"html_url":"https://github.com/raihan2bd/chatgpt-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raihan2bd%2Fchatgpt-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raihan2bd%2Fchatgpt-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raihan2bd%2Fchatgpt-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raihan2bd%2Fchatgpt-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raihan2bd","download_url":"https://codeload.github.com/raihan2bd/chatgpt-go/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248593733,"owners_count":21130312,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatbot","chatgpt","css","go","golang","html","javascript","neural-network","openai","postgresql"],"created_at":"2024-11-15T05:49:27.067Z","updated_at":"2025-04-12T16:04:58.377Z","avatar_url":"https://github.com/raihan2bd.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NeuralChat - using Go (golang) and OpenAI (ChatGPT)\n\u003cp\u003eNeuralChat is a cutting-edge chatbot project that allows users to chat with the state-of-the-art OpenAI chatbot, GPT-3.5, in a seamless and user-friendly manner. The project is built using Golang, PostgreSQL, Javascript, HTML, and CSS, making it a powerful and robust solution for all your chatbot needs.\n\nNeuralChat implements stateful authentication, which ensures that users can securely log in and engage with the chatbot. The user experience is smooth and intuitive, thanks to the project's sleek and modern design.\n\nUsing NeuralChat, users can interact with GPT-3.5 through prompts, allowing them to chat about a wide range of topics and receive intelligent and insightful responses. The chatbot is trained to understand natural language, making conversations feel human-like and engaging.\n\nOverall, NeuralChat is a fantastic solution for anyone looking to build a powerful chatbot that can engage with users in a natural and intuitive way. With its stateful authentication and advanced GPT-3.5 technology, this project is sure to impress and delight users.\u003c/p\u003e\n\n### Tech Stack \u003ca name=\"tech-stack\"\u003e\u003c/a\u003e\n\nI used Go (golang), PostgreSQL, OpenAI, Html, Javascript and CSS to build this project.\n  \u003csummary\u003eFull Stack\u003c/summary\u003e\n  \u003cul\u003e\n    \u003cli\u003eGo (Golang)\u003c/li\u003e\n    \u003cli\u003ePostgreSQL\u003c/li\u003e\n    \u003cli\u003eOpenAI\u003c/li\u003e\n    \u003cli\u003eJAVASCRIPT\u003c/li\u003e\n    \u003cli\u003eHtml\u003c/li\u003e\n    \u003cli\u003eCSS\u003c/li\u003e\n  \u003c/ul\u003e\n\n \u003csummary\u003eMajor Dependencies\u003c/summary\u003e\n  \u003cul\u003e\n    \u003cli\u003e\u003ca href=\"https://github.com/go-chi/chi\"\u003eChi router\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"https://github.com/alexedwards/scs/v2\"\u003eAlex edwards SCS \u003c/a\u003e Session Manager\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"https://github.com/jackc/pgx\"\u003ePGX PostgreSQL Driver\u003c/a\u003e Database Driver\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"https://github.com/justinas/nosurf\"\u003eNosurf\u003c/a\u003e Generate CSRFToken\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"https://github.com/sashabaranov/go-openai\"\u003eOpenAI\u003c/a\u003e OpenAI Driver\u003c/li\u003e\n  \u003c/ul\u003e\n\n## Demo\n![Capture_home](https://user-images.githubusercontent.com/35267447/229288848-3b920169-b580-4121-b0c6-cc431bb12fc6.PNG)\n\n![Capture](https://user-images.githubusercontent.com/35267447/229288865-4947e6e6-bfce-4328-8c03-f0a37f542039.PNG)\n\n![Capture_home_m](https://user-images.githubusercontent.com/35267447/229288832-b06b36aa-6b4d-432f-87a3-86bf4676005f.PNG)\n![Capture-m](https://user-images.githubusercontent.com/35267447/229288895-d0b898ca-5470-47af-9e48-b7644e10c665.PNG)\n\n\n\n## 💻 Getting Started\n- To get star with this package first of all you have to clone the project ⬇️\n``` bash\nhttps://github.com/raihan2bd/chatgpt-go.git\n```\n- Then Make sure you have install [Go (golang)](https://go.dev/dl/) version 1.8.0 or latest stable version.\n- Then make sure you have install [PostgreSQL](https://www.postgresql.org/) on your local machine if you want to use this project as locally.\n- Then Create a database called `chatgpt` inside the database create two table with below command ⬇️\n\n```sql\n CREATE TABLE public.users (\n\tid serial4 NOT NULL,\n\tfirst_name varchar(50) NOT NULL,\n\tlast_name varchar(50) NOT NULL,\n\temail varchar(255) NOT NULL,\n\t\"password\" varchar(60) NOT NULL,\n\tcreated_at timestamp NOT NULL,\n\tupdated_at timestamp NOT NULL,\n\taccess_level int4 NULL DEFAULT 1,\n\tCONSTRAINT users_email_key UNIQUE (email),\n\tCONSTRAINT users_pkey PRIMARY KEY (id)\n);\n\nCREATE TABLE sessions (\n\ttoken TEXT PRIMARY KEY,\n\tdata BYTEA NOT NULL,\n\texpiry TIMESTAMPTZ NOT NULL\n);\n\nCREATE INDEX sessions_expiry_idx ON sessions (expiry);\n```\n- To install all the Go packages navigate the folder address on your terminal and enter the below command ⬇️\n``` bash\ngo mod tidy\n```\n\n![Capture](https://user-images.githubusercontent.com/35267447/229288804-fc4769a8-6e29-4c0b-b2fa-750d27fda43b.PNG)\n- Make sure you rename `example.env` file to `.env` file and modify it with your database credentials (you created earlier) and other info too.\n\n\n# Usages\n\u003e *Note: Before enter the below command make sure you are in the right directory.*\n\n- After finishing the above instructions you can see the project in your local machine by entering the below command ⬇️\n```bash\ngo run main.go\n```\n\n- Then you can see this project live on your browser by this link http://localhost:8080 or your given the port number you set for the project.\n\n\n## 👥 Author\n\n👤 **Abu Raihan**\n\n- GitHub: [@githubhandle](https://github.com/raihan2bd)\n- Twitter: [@twitterhandle](https://twitter.com/raihan2bd)\n- LinkedIn: [LinkedIn](https://linkedin.com/in/raihan2bd)\n\n## 🙏 Acknowledgments \u003ca name=\"acknowledgements\"\u003e\u003c/a\u003e\n\nI would like to thanks [Trevor Sawler](https://www.gocode.ca/) Who help me a lot learn go.\nI would like to thanks [OpenAI](https://openai.com/) for providing us this awesome and excitant API 🙏.\n\n## ⭐️ Show your support \u003ca name=\"support\"\u003e\u003c/a\u003e\n\nThanks for visiting my repository. Give a ⭐️ if you like this project!\n\n## 📝 License \u003ca name=\"license\"\u003e\u003c/a\u003e\n\nThis project is [MIT](./LICENSE) licensed.\n\n## Contribution\n*Your suggestions will be more than appreciated. If you want to suggest anything for this project feel free to do that. :slightly_smiling_face:*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraihan2bd%2Fchatgpt-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraihan2bd%2Fchatgpt-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraihan2bd%2Fchatgpt-go/lists"}