Coder Social home page Coder Social logo

integrateme-co / integrate-io Goto Github PK

View Code? Open in Web Editor NEW
48.0 0.0 16.0 266 KB

Cross-Post your blogs between dev.to, Medium and Hashnode ๐Ÿ”€

License: MIT License

JavaScript 100.00%
hacktoberfest nodejs expressjs mongodb medium productivity blogging automation integration cross-post

integrate-io's People

Contributors

d4rk101 avatar faraazb avatar hnifmaghfur avatar iamrobins avatar sanjaybaskaran01 avatar uzaxirr avatar vikkastiwari avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

integrate-io's Issues

Encrypt API Keys Before Sending to Server

Is your feature request related to a problem? Please describe.
Currently the platform (Dev.to, Medium or Hashnode) API keys are passed as it is to the server, which is a huge security issue.

Describe the solution you'd like
The platform API Keys should be encrypted before leaving the browser and be decrypted only when required

Add Logger

Add proper logging in all the Endpoints using pino-logger

Add Tests For Endpoints

Currently, there is no testing involved which makes the Maintenance of project difficult, Thus It is Desired To have Tests for the following Endpoints

  • api/v2/dev
  • api/v2/medium
  • api/v2/hash

None Encountred Error in cross posting from Dev to Medium

{
    "url": "https://dev.to/vovacodesca/building-custom-usetypedfetch-hook-in-react-with-typescript-mig",
    "medium": true,
    "hash": false,
    "medium_userID": "15663e22a17ff2debaa043cd6f0816d",
     "medium_token":"2615790a9d45d4ea9e2d67f81e2696",
     "hash_token": "fee010ff-bd64b9"
}

Returns None encountered response although article is posted

Add API Docs Using Swagger

Is your feature request related to a problem? Please describe.
Currently, API Docs are present in README which is inconsistent and not well managed

Describe the solution you'd like
Implement the API docs using swagger

Add jest as a test framework

Is your feature request related to a problem? Please describe.
Automatically testing certain parts of the JavaScript logic

Describe the solution you'd like
Add jest as dev-dependency

I could take care of this and make a first example test.

No Proper Response in Medium Corss Posting API

http://localhost:8080/api/v2/medium
Does Not return a proper response even though the article is cross-posted on the other two platforms.

This arises due to poor error handling in controller/postFromMedium.controller.js file
Mainly in the code snippet below

    if(hashPost || mediumPost){
        return res.status(201).json({"Message": "Blog Sucessfully Posted"});
    }

Here i think hashPost is not globally defined

Article Object is Comming in an Array

In controller/postFromMedium.controller.js the article object is coming as the 0th element of an array article

        if(dev) {
            Devblog = await postToDev(article[0], dev_api, "medium");
            if(!Devblog){
                return res.status(400).json({"Error": "Unable to publish to Dev.to From Medium"});
            }
        }

        if(hash){
            hashBlog = await postToHashnode(article[0], hash_api, "medium");
            if(!hashBlog){
                return res.status(400).json({"Error": "Unable to publish to Hashnode from Medium"});
            }
        }

Here as we can see 0th element of article array is being passed on

Pass API Keys Through Headers

In All the endpoints API keys are passed on through the request's body which is not secure and efficient so it is desired to pass the API keys through headers.

medium to dev.to post not working

Medium -> dev

  • When I try to post from medium I have entered the medium URL and also the dev. to Token id

But it not posting there and also no even in the drafts also

Remove Hardcoded Tags in hashnode Endpoint

In the hashnode endpoint, the tags which are to be included in the post are hardcoded

    tags: [
      {
        _id: "56744723958ef13879b9549b",
        slug: article.slug,
        name: "programmin, web-dev",
      },
    ],

This is to be modified and tags are to be added as per original post

Add Dynamic Slug in hashnode endpoint

Currently, the slug in hashnode's endpoint is hardcoded due to GraphQL

    const GET_ARTCILE = `{
        post(slug: "beginners-guide-to-hacktoberfest-2021", hostname: ""){
          title
          content
        }
      }`

This results in posting only one post, it is desired to make the slug dynamic through hashURLParser function

Return The Post URL After Cross Posting

Is your feature request related to a problem? Please describe.
After a Successful cross-post
all APIs just returns

{
  "Message": "Blog Successfully Posted"
}

But It would be better if they can also return the Draft URL of the article that is cross-posted

From Dev to Medium is not working

Describe the bug
api/v2/dev isnt working in case of medium:true

mediumPost at line 22 in postFromDevController.js is undefined.

Problem is in postToMedium function.

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.