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.
- Description
- Table of Contents
- Usage
- Installation
- License
- Technologies Employed
- Future Development
- Contributing
- Tests
- Questions
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
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
To run Telepathy API 💭 locally:
- Pull down and/or branch this repository
- Run
npm i
to install all dependencies - Seed the database by running
npm run seed
- Run the app with
npm run start
ornpm 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
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.
- JavaScript
- MongoDB
- Node.js
- Express.js
- Mongoose
- Moment.js
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 ✓
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!
No tests were run to complete this API.
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.