Code Monkey home page Code Monkey logo

project-happy-thoughts-api's Introduction

Project Happy Thoughts API

The assignment was to create a backend including a REST-API using Mongoose and MongoDB. The API is then used in my previous Happy Thought frontend-project.

The problem

To solve the problem I used:

  • MongoDB as data storage
  • Mongoose to define the document structure in the database
  • Mongo Cloud Atlas for database hosting
  • Heroku for backend server hosting
  • MongoDB Compass for testing
  • Postman for testing

Endpoints:

  • GET /thoughts
    • gets the 20 most recent thoughts, sorted in descending order (new thought on top)
  • POST /thoughts
    • posts a new thought. Requirements are min 4 characters and max 140 in one message, and the value must be unique.
  • POST /thoughts/:id/like
    • increases the amount of likes/hearts by 1 on the thought with the provided _id.
  • DELETE /thoughts/:id
    • deletes the thought with the provided _id.

If I had more time I would experiment with more features that would require changes in the frontend to really understand how FE and BE is connected.

View it live

Backend deployed on Heroku: https://happy-thoughts-finder.herokuapp.com/

Frontend deployed on Netlify: https://epic-euler-f992c6.netlify.app/

project-happy-thoughts-api's People

Contributors

emolsz avatar dependabot[bot] avatar emmabartl avatar idlefingers 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.