Share your repls and programming experiences

← Back to all posts
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!

Voters
lu700
dudeactualdev
RolandJLevy
mkhoi
EpicGamer007
Funkus
Highwayman
Bookie0
frostedbutton75
zplusfour
Comments
hotnewtop
Bookie0

nice!

frostedbutton75
Highwayman

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

Me. XD

zplusfour
[deleted]

@Highwayman
most of my repls lie dormant until i decide to delete them or throw them into the real world (either as a sheet of paper with the code on it or repl talk, both count)

frostedbutton75

Yay!

zplusfour

@frostedbutton75 yay indeed!

zplusfour

@frostedbutton75 I saw you post
you can delete it and make some real post!
WITH MARKDOWN!

frostedbutton75

:) @ZDev1

zplusfour
frostedbutton75

Yay! Okay! @ZDev1

zplusfour

@frostedbutton75 well when you posted it
your link isn't working

zplusfour
frostedbutton75

Oops, can you edit it? To say http://bit.ly/techgeek680? @ZDev1

frostedbutton75

You should add comments! @ZDev1

zplusfour

@frostedbutton75 I tried...
but I had a problem

zplusfour

@frostedbutton75 woah thanks!

frostedbutton75

Np @ZDev1

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
RolandJLevy

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

RolandJLevy

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

zplusfour

@rjlevy thanks!

Highwayman

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

zplusfour

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

Highwayman

@ZDev1 wha...?

zplusfour

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

Highwayman

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

zplusfour

@Highwayman they can open the .env file

Highwayman

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

zplusfour

@Highwayman ok!
Thank you

Highwayman

Yw :) @ZDev1

zplusfour
zplusfour

@Highwayman well done :)

Highwayman

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

zplusfour
zplusfour

@Highwayman did you posted something?

Highwayman

? I never post anything. @ZDev1

zplusfour
Highwayman

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

zplusfour
Highwayman

Lol. @ZDev1

CoolJames1610

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.

zplusfour

@CoolJames1610 ok
but I am on chrome

EpicGamer007

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

zplusfour

@AbhayBhat no it'sn't

EpicGamer007

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

zplusfour

@AbhayBhat open it in a new tab

EpicGamer007

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

zplusfour
EpicGamer007

@ZDev1, ok thx.

zplusfour

@AbhayBhat you need to post something?

EpicGamer007

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

zplusfour
EpicGamer007

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

zplusfour

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

zplusfour

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

EpicGamer007

@ZDev1, Ok

zplusfour
zplusfour

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

Funkus

@ZDev1 good

zplusfour
Funkus

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.

zplusfour

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

zplusfour

@Funkus I can delere posts from my database

Funkus

bruh there is an inappropriate blog...

zplusfour

@Funkus where?
mine?

Funkus

@ZDev1 nah someone else

zplusfour
frostedbutton75

Boredom stimulates miracles,”

-me

zplusfour
frostedbutton75

Yeah! @ZDev1

zplusfour
zplusfour

@frostedbutton75 good pfp
do you have discord?

frostedbutton75

frostedbutton75#7339

@ZDev1

frostedbutton75

And yours? @ZDev1

frostedbutton75
zplusfour
zplusfour

@frostedbutton75 ZDev1#4511

frostedbutton75
frostedbutton75

I sent a request @ZDev1

zplusfour

@frostedbutton75 @CodingCactus deleted all the posts

CodingCactus

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

CodingCactus

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

frostedbutton75

@CodingCactus bad boy!
Jk

CodingCactus

Jk

You better be

zplusfour
zplusfour
CodingCactus

@ZDev1 what are you saying what to?

frostedbutton75

Maybe...... 😎 @CodingCactus

zplusfour

@CodingCactus what is the meaning of JK?

zplusfour
frostedbutton75

Just Kidding @ZDev1 is what jk means

zplusfour

@frostedbutton75 what is the meaning of JK?

frostedbutton75

Just kidding. @ZDev1