A Social-Blogging App developed with Golang & Mysql!!
A Social-Blogging App developed with Golang & Mysql!!
Click here for mini-social-network created with Golang!!
src/
of your Golang project folder.Open PHPMyAdmin, create a db & import db.sql
.
Install all the dependencies with npm or Yarn.
npm install
or
yarn
.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
localhost:[PORT] PORT=2280 (By default)