Go-Social-Blogging-App一个利用Golang和MySQL开发的社交博客应用程序

网友投稿 7625 2022-10-30

Go-Social-Blogging-App一个利用Golang和MySQL开发的社交博客应用程序

Go-Social-Blogging-App一个利用Golang和MySQL开发的社交博客应用程序

Go-Social-Blogging-App

A Social-Blogging App developed with Golang & Mysql!!

Updated Version

Click here for mini-social-network created with Golang!!

Quick Links

ScreenshotsRequirementsUsage

Screenshots

Requirements

Make sure you keep this project inside src/ of your Golang project folder.Following packages should be installed. httprouternegronicheckmailMySQL driverbcryptsessionsgodotenv

Usage

Open PHPMyAdmin, create a db & import db.sql. Install all the dependencies with npm or Yarn.

npm install

or

yarn

Create a .env file & insert the above code. Replace values with yours!!

PORT=YOUR PORT (default: 2280) [STRING]SESSION_SECRET=ANYTHING SECRET [STRING]DB_USER=DB_USER [STRING]DB_PASSWORD=DB PASSWORD [STRING]DB=DB YOU JUST CREATE [STRING]

My root folder name is Go-Social-Blog-App, if yours is different then go ahead & change it as it used for imports. It can be done easily by searching the whole project. Now run the app.

npm run start

Run the app in browser.

localhost:[PORT] PORT=2280 (By default)

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:Servlet的线程安全问题
下一篇:多目标优化中常用的进化算法简介及原论文(最全概括)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~