GithubHelp home page GithubHelp logo

faisaly12 / blogue-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ros1995/blogue-server

0.0 0.0 0.0 127 KB

An anonymous community journalling webpage. This repo contains the code for the backend, the API was built using the express library.

Home Page: https://blogue.netlify.app/

License: MIT License

JavaScript 100.00%

blogue-server's Introduction

Blogue - server

License: MIT

A anonymous community journalling site built using JavaScript, HTML, and CSS, inspired by the aesthetics of Vogue magazine. Users can make posts anonymously, with an optional feature to add a GIF. Other users can comment and react on the submitted posts.

Installation

Usage

  • Open your terminal/CLI and navigate to the blogue-server folder
  • Run npm install to install dependencies
  • Run npm start to launch server
  • Navigate to the blogue-client folder
  • Run npm install to install dependencies
  • Load index.html in your browser
  • Happy posting!

Technologies

  • Server side: JavaScript
    • Dependencies include: Express, Body-Parser, Cors
  • Test suite: Jest, supertest

Process

  • Discussion on what functionality we need on our server for the client
  • Basic CRUD functionality implemented
  • Improvements made upon existing functionality to give additional features to the client side

Wins & Challenges

Wins

  • Achieved a minimum viable product. The following functionalities are available to the client: make GET requests to retrieve all posts, make post and patch requests to create posts, and react or comment on other peoples' posts
  • Implemented full CRUD functionalities on server side (fully functional GET ,POST, PATCH, DELETE methods)
  • Added additional feautures: A sort posts function which sends back posts in ascending, descending or by ascending order of comments + reactions;
  • A search posts function which returns posts where the subject or journal input includes the search query string.
  • Tested all functions and API Endpoints

Challenges

  • Difficulties with testing on complicated functions
  • Connecting server and client side
  • Coming across numerous bugs and errors while setting up server

Bugs

  • No known bugs. The following bugs were encountered during the process and fixed: delete method would delete posts even if postID given did not have a match in the data

Future Features

  • Adding a functionality to allow the users to sort the submitted posts (e.g. in most recent or most reacted order)
  • Granting superuser access to the admin so that they are able to delete or edit any posts (e.g. posts that may be inappropriate or hateful)
  • Grouping the posts with tags pertaining to their subject matter, so that users to find posts relating to a specific subject matter.
  • Search feature to allow users to find posts using specific keywords

Licence

  • MIT

blogue-server's People

Contributors

faisaly12 avatar jameswheadon avatar ros1995 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.