Postit is a social media app where users can share and exchange thoughts in texts. Users need to sign in to be able to use the endpoints to create, update, delete and get postits and comments.
• Nodejs (v18.12.1)
• Express (v4.18.2)
• Mongoose (v7.0.1)
• Bcrypt (v5.1.0)
• Jsonwebtoken (v9.0.0)
• Joi (v17.8.3)
• Cookie Parser (v1.4.6)
• Dotenv (v16.0.3)
• Download the zip or clone repository and open terminal.
• Use npm install to install all dependencies.
• Download Postman, Swagger, Insomnia or use the Thunder Client extension on VS Code to simulate running the code as a user on the client side.
• Check the contents of the .env.example to set up your .env file
• Connect your MongoDb Atlas database with the url.
• Use node app.js to run the program.
The link below contains a documentation on how to use this API below with samples of requests and responses:
The link below contains a database model diagram showing the relationship between users, postits and comments (user replies):
Soft deleted postits were stored on the database for security reasons and to keep track of all past user interactions in accordance with privacy laws for future references.