Skip to content

isayani/no-sql-social-network

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telepathy API 💭

License: MIT

Description

Telepathy is a social network backend (API) where users can create a friend list, share their thoughts, and react to their friends' thoughts! This API uses Express.js for routing, MongoDB as the database, and Mongoose as the Object Data Modeling (ODM) library. This API also uses the native Javascript Date object and moment.js to format timestamps. To learn more about Telepathy API, read throught the documentation below.

Table of Contents

  1. Description
  2. Table of Contents
  3. Usage
  4. Installation
  5. License
  6. Technologies Employed
  7. Future Development
  8. Contributing
  9. Tests
  10. Questions

Usage

User Story

AS A social media startup
I WANT an API for my social network that uses a NoSQL database
SO THAT my website can handle large amounts of unstructured data

Acceptance Criteria

GIVEN a social network API
WHEN I enter the command to invoke the application
THEN my server is started and the Mongoose models are synced to the MongoDB database
WHEN I open API GET routes in Insomnia for users and thoughts
THEN the data for each of these routes is displayed in a formatted JSON
WHEN I test API POST, PUT, and DELETE routes in Insomnia
THEN I am able to successfully create, update, and delete users and thoughts in my database
WHEN I test API POST and DELETE routes in Insomnia
THEN I am able to successfully create and delete reactions to thoughts and add and remove friends to a user’s friend list

Installation

To run Telepathy API 💭 locally:

  1. Pull down and/or branch this repository
  2. Run npm i to install all dependencies
  3. Seed the database by running npm run seed
  4. Run the app with npm run start
    or npm run dev for nodemon

This application has not been deployed. The following animations show the API being invoked and seeded:
runSeeds.mp4

The following animations show examples of the application's API routes being tested in Insomnia: (GET, POST, PUT, DELETE)
Telepathy.Routes.Demo.mp4

License

This project is licensed under the MIT license.

A short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code.

For more information visit MIT Licensing.

Technologies Employed

  • JavaScript
  • MongoDB
  • Node.js
  • Express.js
  • Mongoose
  • Moment.js

Future Development

We would like to continue to add the following functionality to our application:

  • Active counter for all thoughts
  • Active counter for all friends
  • Delete associated thoughts when user is deleted ✓

Contributing

We'd love for you to contribute! In order to do so, fork this repository. Your pull request will need approval in order to merge to main.

Take a look at our Future Development section to see what we are looking to expand on (implemented features are denoted with a ✓). Feel free to implement your own ideas and merge request!

Tests

No tests were run to complete this API.

Questions

Find Insha Sayani on GitHub
Or visit the API's repository: Telepathy API 💭


© 2022 Telepathy 💭: Social Network API by ISayani Creative Services, Confidential and Proprietary. All Rights Reserved.

Releases

No releases published

Packages

No packages published