An open API service indexing awesome lists of open source software.

https://github.com/8-bit-souvik/wetalk

A social media platform where user can share thoughts with text and media and build community with fun!
https://github.com/8-bit-souvik/wetalk

blogging-system docker docker-compose express express-js expressjs heroku javascript jwt-authentication mongodb newsfeed nodejs nodejs-server social-network

Last synced: 4 months ago
JSON representation

A social media platform where user can share thoughts with text and media and build community with fun!

Awesome Lists containing this project

README

          

# About weTalk
This is an inter-college social media application where users can interact to each others and share their ideas, doubts or any queries and can do like, comment to others' post.


weTalk logo

-------------------------------------------------------------------------------------------------------------------------------------------------------



JavaScript
· Node JS
· Express




API
· JSON
· mongoose




HTML
· CSS
· ejs




Social media
· blogging app





Try it!












## [Click here to land on the Homepage](https://wetalk021.herokuapp.com/)

## Intro

[weTalk](https://wetalk021.herokuapp.com/) is a Social media application built with NodeJS where user can get socialize with each other by uploading post, like and comment on their posts.

## Summary

- First thing first, user have to signin with github account
- User can see What other users are posting
- User can also upload any post (till now only text), character limit: 1-1500
- User can like and comment in any post
- User can hide any post for that time from news feed
- User can delete his own post or comment


## 💻 Tech Stack

#### Front-End:
CSS3 JavaScript

#### Back-End:
Javascript nodeJS expressJS JWT NPM

#### DataBase:
MongoDB

#### Other:

GIT heroku Docker AlpineJS




### 🌐 This application is now remotely hosted

### 👉 [here is the link](https://wetalk021.herokuapp.com/)


### 💻 Or try to set it up locally:

# Local Environment setup

## Create credentials in [imagekit.io](https://imagekit.io/)

after creating an account go to the [developer option](https://imagekit.io/dashboard/developer) and collect your `URL-endpoint`, `Public Key` and `Private Key`

![imagekit-demo](https://user-images.githubusercontent.com/72222987/150644016-a578b8d4-e211-4578-b2a9-a0a76095a347.png)

## dotenv file creation

In this dotenv file all keys and credentials for this web app will be stored.

Create a file named `.env` at the root of the directory, then fill these data given below:

Paste your `Public Key`, `Private Key` and `urlEndpoint` which you have collected
```
PORT = '5510'
passphrase = 'adhguiewhrh89fgrt6wterg23edg'
JWT_token = '56t3yde8u23g7d6847e823wr623e'
clientID = 'fcbda448c36edfee295f'
clientSecret = 'e33eb5206a91d3dbf55f1252d5bf462819b41dda'
mongoAddress = 'mongodb://localhost:27017/sampleBlog'
publicKey =
privateKey =
urlEndpoint =
```

***if you have any other Mongo DataBase replace the given `mongoAddress` URI with your own.**

## NPM package installation

Install Node JS to run this program in server side.
open a terminal and go to it's root directory.

type `npm install` to install all NPM libraries mentioned in package.json as dependencies

## Run this app

environment setup is completed.

now start the server by running `npm start`

go to the browser and type URL `localhost:5510`






### 📦 Or use Docker compose:

# Docker setup (Local Env)

## Docker engine installation
install docker engine from [here](https://docs.docker.com/engine/install/)

## Docker Compose installation
install docker compose from [here](https://docs.docker.com/compose/install/)

## Get docker-compose.yml:

Save the [yml file](https://github.com/8-bit-souvik/weTalk/blob/master/docker-compose.yml) for docker-compose

## Pull and run containers

- Run command `sudo docker-compose up` or `sudo docker-compose up -d` ([detached mode](https://docs.docker.com/engine/reference/run/#detached-vs-foreground)) to run containers
- check those running containers by command: `sudo docker ps`

## Enjoy it!

Go to the browser and type URL `localhost:5510`



for any kind of problem or queries contact me on   or

DM is open 📩




![Screenshot from 2022-01-12 20-15-33](https://user-images.githubusercontent.com/72222987/149162387-97c6f5d8-cb0a-4146-8fae-12eb4448b2e4.png)