Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ytakkar/go-social-blogging-app
A Social-Blogging App developed with Golang & Mysql!!
https://github.com/ytakkar/go-social-blogging-app
app golang mysql
Last synced: 24 days ago
JSON representation
A Social-Blogging App developed with Golang & Mysql!!
- Host: GitHub
- URL: https://github.com/ytakkar/go-social-blogging-app
- Owner: yTakkar
- Created: 2017-09-05T10:04:33.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-27T03:24:39.000Z (almost 7 years ago)
- Last Synced: 2024-10-03T12:39:52.753Z (about 1 month ago)
- Topics: app, golang, mysql
- Language: Go
- Homepage:
- Size: 2.26 MB
- Stars: 31
- Watchers: 7
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Go-Social-Blogging-App
A Social-Blogging App developed with Golang & Mysql!!
### Updated Version
Click [here](https://github.com/yTakkar/Go-Mini-Social-Network) for mini-social-network created with Golang!!# Quick Links
1. [Screenshots](#screenshots)
2. [Requirements](#requirements)
3. [Usage](#usage)# Screenshots
![alt text](https://raw.githubusercontent.com/yTakkar/Go-Social-Blogging-App/master/screenshots/Snap%202017-09-05%20at%2015.40.35.png)
![alt text](https://raw.githubusercontent.com/yTakkar/Go-Social-Blogging-App/master/screenshots/Snap%202017-09-05%20at%2015.40.46.png)
![alt text](https://raw.githubusercontent.com/yTakkar/Go-Social-Blogging-App/master/screenshots/Snap%202017-09-05%20at%2015.40.54.png)
![alt text](https://raw.githubusercontent.com/yTakkar/Go-Social-Blogging-App/master/screenshots/Snap%202017-09-05%20at%2015.41.31.png)
![alt text](https://raw.githubusercontent.com/yTakkar/Go-Social-Blogging-App/master/screenshots/Snap%202017-09-05%20at%2015.41.39.png)
![alt text](https://raw.githubusercontent.com/yTakkar/Go-Social-Blogging-App/master/screenshots/Snap%202017-09-05%20at%2015.41.10.png)
![alt text](https://raw.githubusercontent.com/yTakkar/Go-Social-Blogging-App/master/screenshots/Snap%202017-09-05%20at%2015.41.47.png)# Requirements
1. Make sure you keep this project inside `src/` of your Golang project folder.
2. Following packages should be installed.
1. [httprouter](https://github.com/julienschmidt/httprouter)
2. [negroni](https://github.com/urfave/negroni)
3. [checkmail](https://github.com/badoux/checkmail)
4. [MySQL driver](https://github.com/go-sql-driver/mysql)
5. [bcrypt](https://golang.org/x/crypto/bcrypt)
6. [sessions](https://github.com/gorilla/sessions)
7. [godotenv](https://github.com/joho/godotenv)# Usage
1. Open PHPMyAdmin, create a db & import `db.sql`.
2. Install all the dependencies with npm or Yarn.
```javascript
npm install
```
or
```javascript
yarn
```3. Create a `.env` file & insert the above code. Replace values with yours!!
```javascript
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]
```4. 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.
5. Now run the app.
```javascript
npm run start
```6. Run the app in browser.
```javascript
localhost:[PORT] PORT=2280 (By default)
```