Skip to content

8-bit-souvik/weTalk

Repository files navigation

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!


Intro

weTalk 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


💻 Or try to set it up locally:

Local Environment setup

Create credentials in imagekit.io

after creating an account go to the developer option and collect your URL-endpoint, Public Key and Private Key

imagekit-demo

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 = <create yourself!>
privateKey = <create yourself!>
urlEndpoint = <create yourself!>

*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

Docker Compose installation

install docker compose from here

Get docker-compose.yml:

Save the yml file for docker-compose

Pull and run containers

  • Run command sudo docker-compose up or sudo docker-compose up -d (detached mode) 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