Code Monkey home page Code Monkey logo

social-network-api's Introduction

Social Network API


Table of Content

📝 Description

This is a back end application for a Social Network created using a configured working Express API & mongoose ODM to interact with a mongoDB database. MongoDB is a popular choice for many social networks due to its speed with larger amounts of data and flexibility with unstructured data. Due to their prevalence, the aim of this application is to demonstrate my understanding of how to build and structure the API of these networks.

🕹 Technologies used

  • JavaScript
  • node.js
  • Express.js
  • MongoDB
  • Mongoose
  • Mongoose validator
  • Moment.js

⚙️ Installation

  1. Git clone this repository onto your local machine and navigate to the file on your terminal. This can also be done by opening the file on Visual Studios and running it through the intergated terminal.

  2. In order for the app to function correctly, ensure you have the latest or most stable version of Node.js.

  3. Run npm install to download.

  4. To start the application, run: npm run start

🖥 Usage

This application allows you to navigate different link routes that display data from the database.

  • GET/ POST routes:
    http://localhost:3001/api/users
    http://localhost:3001/api/thoughts

    • If you wish to GET a certain id you can do so by adding an /id at the end of the link.
  • PUT/DELETE routes:
    http://localhost:3001/api/users/:id
    http://localhost:3001/api/thoughts/:id

  • POST/ DELETE routes:
    http://localhost:3001/api/users/:id/friends/:friendId
    http://localhost:3001/api/thoughts/:id/reactions

    • The route above is used to POST a new reaction. If you wish to DELETE a certain reaction you can do so by adding an /id at the end of the link.

👥 Contributors

Etta Ho

🔖 License

MIT License Copyright (c) [2022] [ettaho] Permission is herby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limiation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject following coditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MECHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OF OTHER DEALINGS IN THE SOFTWARE.


❓ Questions

If you have any questions, contact me via email. You can also find more of my work here.

social-network-api's People

Contributors

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