1.0.29 • Published 12 months ago

replyke-express-testing v1.0.29

Weekly downloads
-
License
-
Repository
-
Last release
12 months ago

Replyke Express

Express routes for integrating Replyke's features, including fetching, liking, unliking articles, and managing comments.

Table of Contents

Installation

To install the package, run the following command:

npm install replyke-express

Usage

To use the routes provided by replyke-express in your Express application, import and use them as middleware:

Basic Setup

const express = require('express');
const { replykeRoutes } = require('replyke-express');

const app = express();

app.use(express.json());
app.use(replykeRoutes);

const PORT = process.env.PORT || 3000;
app.listen(PORT, () => {
  console.log(`Server is running on port ${PORT}`);
});

Collections

Documents will be saved under the following collections in your MongoDB database:

  • replyke-articles: Stores articles with their associated likes, comments, and replies.
  • replyke-comments: Stores comments related to articles.

License

This project is licensed under the MIT License - see the LICENSE file for details.

1.0.29

12 months ago

1.0.28

12 months ago

1.0.27

12 months ago

1.0.26

12 months ago

1.0.25

12 months ago