Giter VIP home page Giter VIP logo

xmeme's Introduction

Xmeme

A Full stack application created to post memes on a feed and able to see them.

Technology stack

FrontEnd - React JS, HTML, CSS, Javascript

Backend - Spring-Boot, Java

Database - Postgres

Backend overview

Xmeme is implemented in a Microservice architecture (inside controller folder class XmemeController)

  1. findById which takes id as parameter and returns the meme which have that id.

  2. findAllMemes which takes no parameters and returns the all the memes with limit to 100

  3. addMeme which takes MemeDTO(name,url,caption) data as parameter and save the data into database followed by returning the newly created id.

  4. updateMeme which takes id and MemeDTO(url,caption) as parameter and updates the url and caption for a specific field. Components which is used to implement the APIs Meme (an entity class) is used to map json data in entities.

MemeRepo is a interface which extends the Crud Operations of PostgreSQL.

Publicly Deployed Link for this project https://xmeme-be.herokuapp.com/

End-Point = /memes For curl commands

  1. For Post request

curl --location --request POST 'https://xmeme-be.herokuapp.com/memes' \

--header 'Content-Type: application/json' \

--data-raw '{

"name": "MS Dhoni",

"url": "https://images.pexels.com/photos/3573382/pexels-photo-3573382.jpeg",

"caption": "This is a meme"

}'

  1. For Get request

curl --location --request GET 'https://xmeme-be.herokuapp.com/memes'

curl --location --request GET 'https://xmeme-be.herokuapp.com//memes/'

  1. For Patch request

curl --location --request PATCH 'https://xmeme-be.herokuapp.com/memes/'

--header 'Content-Type: application/json' \

--data-raw '{

"url": "new_url",

"caption": "new_caption"

}'

xmeme's People

Contributors

manasarora98 avatar

Stargazers

Santanu Singha 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.