DEV Community

Cover image for How to build an event management application in Node.js + React on Redis

How to build an event management application in Node.js + React on Redis

Michael Owolabi on July 06, 2022

You’re probably thinking, wait, did I read the title right? Build an event manager in Node.js and backed by Redis as the database? Just follow alon...
Collapse
 
kritikgarg profile image
kritikgarg

👏👏👏 This is an amazing tutorial, Michael!

Your step-by-step approach to building an event management application using Node.js and React on Redis is incredibly informative and well-explained, making it easier for developers to follow and build their own applications. 👍 Excellent work!

👀Recently, I came across an interesting article on Event Management in Salesforce that provides a custom solution to meet the event management needs in Salesforce. It's a helpful resource for those looking to streamline their event planning and management process. 🚀

Collapse
 
imichaelowolabi profile image
Michael Owolabi

Thank you for the kind words @kritikgarg

Collapse
 
tikam02 profile image
Tikam Singh Alma

redis not working

ConnectionTimeoutError: Connection timeout

Collapse
 
imichaelowolabi profile image
Michael Owolabi

Hi @tikam at what point exactly did you get this error?
Generally when you get a connection timeout error, it's due to connection problem usually network related. It will be helpful if you could provide more context.

Collapse
 
tikam02 profile image
Tikam Singh Alma

can you provide proper working code repository, because verify user email and hashed function was not working, promises were pending, debugged and re wrote it.

Thread Thread
 
imichaelowolabi profile image
Michael Owolabi

I'm not sure I understand what you mean.

Thread Thread
 
tikam02 profile image
Tikam Singh Alma

Why I'm asking for working code repository because lot of things are not handled in blog, while coding and running there are lots of bugs like this:

[nodemon] starting node src/app.js
internal/process/esm_loader.js:74
internalBinding('errors').triggerUncaughtException(
^

[ErrorReply: ERR unknown command 'FT.DROPINDEX', with args beginning with: 'EventRepository:index' ]
[nodemon] app crashed - waiting for file changes before starting...

Thread Thread
 
imichaelowolabi profile image
Michael Owolabi

The source code can be found here: github.com/iMichaelOwolabi/event-m...

Thread Thread
 
tikam02 profile image
Tikam Singh Alma • Edited

Thanks man!

Thread Thread
 
imichaelowolabi profile image
Michael Owolabi

You're welcome.

Thread Thread
 
tikam02 profile image
Tikam Singh Alma

Btw, what to add in authorization header?

is it "token" or "authorization" : "token from login"

token : "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyS2V5IjoidXNlcjphYmN"

or

authorization: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyS2V5IjoidXNlcjphYmN"

{
"error": true,
"message": "Unauthorized user."
}

Thread Thread
 
imichaelowolabi profile image
Michael Owolabi • Edited

Bearer token e.g. Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyS2V5IjoidXNlcjp...

If you're testing via Postman just choose Bearer Token option in the Authorization header.
Image description

If curl: "Authorization: Bearer {token}"

Thread Thread
 
Sloan, the sloth mascot
Comment deleted
Collapse
 
philip profile image
Philip Kumah Jr

Thanks Mike.

Collapse
 
imichaelowolabi profile image
Michael Owolabi

Thank you Philip. Glad you liked it

Collapse
 
diosvo profile image
Dios Vo

Nice article 👀

Collapse
 
imichaelowolabi profile image
Michael Owolabi

Thank you @diosvo
Glad you like it

Collapse
 
nickydov profile image
WilloW

Your work is excellent.

Collapse
 
imichaelowolabi profile image
Michael Owolabi

Thank you @nickydov for the nice comment

Collapse
 
tikam02 profile image
Tikam Singh Alma

hi Micheal,

why I get, this

{
    "error": false,
    "message": "Events retrieved successfylly",
    "data": {
        "allEvents": [],
        "totalEvents": 0,
        "totalPages": 0
    }
}
Enter fullscreen mode Exit fullscreen mode

when hiting localhost:5000/api/v1/events

even though I have added events data.