Skip to content

Rymul/here-now

Repository files navigation

here&now



Live site

Here&now is a fun, spicy spin on the social event planning application meta! Users can host their own event or join other users' events and comment on other users' events through a smooth, single page application interface, utilizing geolocation, Google Places, and Google Maps API's. The spin? Events can only be hosted within 48 hours of right now and users will only see events in their area.

Here&now connects people to the places they live and the immediacy of now in a fun and interactive way!

Technologies:


  • React.js
  • Redux.js
  • Node.js
  • MongoDB
  • Mongoose ODM
  • Express
  • Google Maps API
  • Google Places API
  • Geolocation API

Here&now is built with a Express backend framework. The frontend utilizes React and Redux to create a dynamic single page application. All data is stored through Mongo NoSQL database. These technologies allow users to smoothly navigate throughout the site and allow for dynamic creating, updating, and deleting of profiles, events, and comments.

Features:


User Authentication:

  • Users can sign up for an account on here&now. They can also log in to view, update, and delete their profile page.
  • Authentication is implemented using the JWT Library to generate encrypted authentication tokens.
  • If a visitor does not want to create an account, they can log in as a Demo User. This provides them with full access to here&now's features.

Events:

  • Users can navigate through a collection of listed events on the home page.
  • When an event is selected, the event's show page is rendered displaying relevant information.
  • The user can then join or leave the event by toggling the attend button.
  • If they are the event creator they have the ability to update or cancel the event.

Events List:

const eventsList = () => {
        if (!latlng.lat) {
            return (<div> <img className='event-index-loading' src="./loading.gif" alt="loading" /> </div>)
        } else if (events.length === 0) {
            return (<EventsIndexNoEvents filter={props.filter}/>)
        } else {
            return events.map((event) => (<li key={event['_id']}><EventsListItem event={event} pins={pins}/></li>))
        }
    }

Event Show Page:

<h1 id="event-show-title">Welcome to {event.owner.firstName}'s {event.title}</h1>
                <div className='event-show-page-splitter-parent'>
                <div className='event-show-page-splitter'>
                    <div className='event-show-right'>
                        <div className='event-show-map-container'>
                            <EventShowMapWrapper apiKey={process.env.MAPS_API_KEY} latlng={latlng} event={event}/>
                        </div>
                    </div>
                    <div className='event-show-left'>
                        <div className='event-show-details'>
                            <div className='event-show-details-left'>
                                <p id="event-show-details-left-text">WHERE:</p>
                                <p id="event-show-details-left-text">WHEN:</p>
                                <p id="event-show-details-left-text">WHAT:</p>
                            </div>
                            <div className='event-show-details-right'>
                                <p id="event-show-details-right-text">{event.address}</p>
                                <p id="event-show-details-right-text">{`${(eventTime.getUTCHours() % 12) === 0 ? 12 : eventTime.getUTCHours() % 12}:${('0' + eventTime.getUTCMinutes()).slice(-2) } ${eventTime.getUTCHours() >=12 ? "PM" : "AM"}`}</p>
                                <p id="event-show-details-right-text">{event.description}</p>
                            </div>

Comments:

  • At the bottom right of the event show page, users will see all comments created for that event.
  • If they have left a comment, they will be able to edit their comment in-line or delete their comment.

Comments Form:

<div className='event-show-comments'>
    <CommentsForm id="event-show-comments-form" event={event}/>
    {Object.values(event.comments).reverse().map(comment =>(
        <CommentItem comment={comment} key={comment._id} />
    ))}
</div>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages