Share your repls and programming experiences

← Back to all posts
Markdown Blog | Write and Read
h
ZDev1 (366)

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!

Commentshotnewtop
Highwayman (1367)

I made from a long time! in vs code!
So I decided to post it right now!

Me. XD

rjlevy (55)

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?

ZDev1 (366)

@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!

rjlevy (55)

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'));

ZDev1 (366)

@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!

ZDev1 (366)

@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

rjlevy (55)

Hi @ZDev1, the code looks great but I can't see the project. I just get this error message: We Couldn't Reach Your Repl

rjlevy (55)

Hi @ZDev1, thanks for fixing it - looks great!

Highwayman (1367)

Um... did u make it a private repl or something...?

ZDev1 (366)

@Highwayman I make it private because I don't need someone copy the database pwd and the link

ZDev1 (366)

@Highwayman database connection link
I don't need someone to copy it and make something with the database

Highwayman (1367)

@ZDev1 why not just put it in a .env file?

ZDev1 (366)

@Highwayman they can open the .env file

Highwayman (1367)

@ZDev1 ? that should be impossible or just easily fixed. replit doesn't allow other users to open a .env file in a repl that they do not own or have editing access to.

Highwayman (1367)

Oh yay you got your stuff in a .env! Awesome! @ZDev1

ZDev1 (366)

@Highwayman did you posted something?

Highwayman (1367)

? I never post anything. @ZDev1

Highwayman (1367)

I either don’t have any ideas, don’t have anything impressive, or don’t have anything that works. @ZDev1

CoolJames1610 (556)

Firefox Can’t Open This Page

To protect your security, repl.it will not allow Firefox to display the page if another site has embedded it. To see this page, you need to open it in a new window.

AbhayBhat (256)

Wait it does not work, It says repl.it refused to connect

AbhayBhat (256)

@ZDev1, uh... Let me send you snip

AbhayBhat (256)

@ZDev1, Uh I cannot do that because the whole repl does not respond. Can you send me the link?

ZDev1 (366)

@AbhayBhat you need to post something?

AbhayBhat (256)

@ZDev1, I tried posting something. Let me check if it worked

AbhayBhat (256)

@ZDev1, Hey... IT works. This is really Cool!

ZDev1 (366)

@AbhayBhat as you can see there is some comments in your posts!
and thank you!

ZDev1 (366)

@AbhayBhat if you need to edit or to delete your post
just ask me because I am the owner of the database

ZDev1 (366)

somone posted somthing have dirty words >:(
I deleted his post from the database

Funkus (212)

everyone who writes a blog plz be informative, and family-friendly. there are also kids who use this platform so pls don't use inappropriate language or content :P. delete the post if you posted it.

ZDev1 (366)

@Funkus well @CodingCactus pointing out a bug!
So you can't delete your blog right now

ZDev1 (366)

@Funkus I can delere posts from my database

Funkus (212)

bruh there is an inappropriate blog...

frostedbutton75 (28)

Boredom stimulates miracles,”

-me

ZDev1 (366)

@frostedbutton75 good pfp
do you have discord?

CodingCactus (2824)

@ZDev1 yeah because you shouldn't have the option silly

CodingCactus (2824)

Anyway, i assume you backed up the db so you can easily get them all back. Make the delete thing admin only!!!!

CodingCactus (2824)

@ZDev1 what are you saying what to?

ZDev1 (366)

@CodingCactus what is the meaning of JK?

frostedbutton75 (28)

Just Kidding @ZDev1 is what jk means

ZDev1 (366)

@frostedbutton75 what is the meaning of JK?