GithubHelp home page GithubHelp logo

8-bit-souvik / wetalk Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 740 KB

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

Home Page: https://wetalk021.herokuapp.com/

License: Apache License 2.0

JavaScript 69.50% CSS 16.48% Shell 0.07% EJS 13.60% Dockerfile 0.35%
newsfeed blogging-system nodejs-server jwt-authentication mongodb express-js nodejs express heroku social-network

wetalk's Introduction

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

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

👉 here is the link


💻 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

wetalk's People

Contributors

8-bit-souvik avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.