Markdown Blog | Write and Read
zplusfour

Hello to my BEST nodejs project!

I made from a long time! in vs code!

So I decided to post it right now!


Blogs make and read!
Read the rules post!

with the mongodb version!

Style your blog with markdown!
Add comments!
everyone can see your blog with the name and when he posted it!

SO HOPE YOU ENJOY!

You are viewing a single comment. View All
RolandJLevy

Hi @ZDev1, This is such a well coded project. I like the fact that you are using the bad-words node package - great idea. How did you store your environment variables?

zplusfour

@rjlevy well I thought.. to use the bad-words library to clean the post from bad words
but I failed
can you help me?
also thanks for your suggestions!

RolandJLevy

Hi @ZDev1, are you using the clean method as shown in the documentation from the bad-words npm, like this:

const Filter = require('bad-words'); const filter = new Filter(); console.log(filter.clean('these are the bad words'));

zplusfour

@rjlevy yes
I know the documentation
but how can I use the clean function to clean ejs elements?
because post parts (title, author, markdown, etc.) are made of a mongodb schema and ejs elemnts <%= article.title %>
so I'll be happy if you found the problem!

zplusfour

@rjlevy also I used bad-words in my chat app!
https://repl.it/@ZDev1/chatapp
https://chatapp.zdev1.repl.co

also do you have discord?
if yes, give me your username if to talk with you

RolandJLevy

Thanks @ZDev1, the chatapp looks great. This link works: https://chatapp.zdev1.repl.co but this link doesn't work: https://repl.it/@ZDev1/chatapp

My discord username is: Roland#8689

I am moving house at the moment so if you don't hear back from me it just means I am on the road or busy. What's your username?

zplusfour

@rjlevy my username is ZDev1#4511
also this is the chatapp...
because it is private, lol

zplusfour

@rjlevy I sent the request

RolandJLevy

Hi @ZDev1, sounds like an interesting challenge. I'll take a look when I have some time soon :)

zplusfour