Giter Club home page Giter Club logo

tsismis-be's Introduction

Tsismis (Gossip)

Here is a working DEMO that you could visit. Please be responsible enough not to post or exhaust the demo server.

Description

This repository contains a Node.js Express GraphQL API that serves as a backend service for a gossip management application. It provides CRUD (Create, Read, Update, Delete) operations for managing gossips and related data in a MongoDB database.

Features

  • Gossip Creation: Users can create gossips to share with others.
  • Gossip Browsing: Users can browse and check out gossips created by others.
  • Account Creation: Users can create an account to access additional features.
  • Registration: Users can register their accounts for personalized experiences.

Key Features

  • Lazy Loading: Utilizes lazy loading to enhance performance by loading components only when needed.
  • API Integration: Connects to a backend API, allowing seamless communication for data retrieval and storage.
  • Proper Routing: Implements proper routing practices to ensure smooth navigation and bookmarking within the application.
  • Observes Code Structure: Follows a structured code organization to enhance readability, maintainability, and scalability.

Missing or To-Follow Work

  • Unit Testing: Implementation of unit tests to ensure code reliability and maintainability.
  • Notifications: Integrate notifications system to alert users about relevant activities.
  • Follow and Unfollow: Implement functionality for users to follow and unfollow each other.

Requirements

  • Node.js version 20.12.1 or higher

Installation

  1. Clone the repository:
git clone https://github.com/diontristen/tsismis-be
  1. Install dependencies:
npm install
  1. Create an .env file to your root directory
PORT=5001
MONGO_INITDB_ROOT_USERNAME=root
MONGO_INITDB_ROOT_PASSWORD=JXpd7W>x09
MONGO_INITDB_HOST=localhost
MONGO_INITDB_PORT=27017
JWT_SECRET=Uu8JlGnQ4CWaVjByzgqQV9t4MBkfcP6X
AVATAR_URL=https://api.dicebear.com/8.x/lorelei-neutral/svg
APP_URL=http://localhost:5000

** Note: MongoDB url is translated into this

  const MONGODB_URI = `mongodb://${process.env.MONGO_INITDB_ROOT_USERNAME}:${process.env.MONGO_INITDB_ROOT_PASSWORD}@${process.env.MONGO_INITDB_HOST}:${process.env.MONGO_INITDB_PORT}`
  mongodb://root:JXpd7W>x09@localhost:27017
  1. Start the development server:
npx nodemon

##OR##

Using Docker

  1. Clone the repository
git clone https://github.com/diontristen/tsismis-be
  1. Navigate to the project directory:
cd tsismis-be
  1. Build and run the docker container
docker-compose up
  1. Access the api http://localhost:5001

**Note: Adjust the ports in the Dockerfile and docker-compose.yaml relative to your liking

MongoDB

If you wish to just use the app in dev mode you need a working mongodb service. You can create a separate docker-compose.yml file

version: '3.8'

services:
  tsismis_mongodb:
    image: mongo:4.4
    ports:
      - "27019:27017"
    environment:
      MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME}
      MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD}
    volumes:
      - mongodb_data:/data/db

volumes:
  mongodb_data:

And run docker-compose up

Usage

  1. Access the application through the provided URL.
  2. Sign up for an account or log in if already registered.
  3. Explore the features to create gossips, browse gossips, and manage your account.

Contributing

Contributions are welcome! If you'd like to contribute to this project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/improvement).
  3. Make your changes.
  4. Commit your changes (git commit -am 'Add some feature').
  5. Push to the branch (git push origin feature/improvement).
  6. Create a new Pull Request.

Note: This project is connected with a frontend repository hosted at https://github.com/diontristen/tsismis-fe.

tsismis-be's People

Contributors

diontristen 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.