Skip to content

Eventslap a is Full-stack application using the MERN stack (MongoDB, Express, React, and Node.JS). SPA frontend, built with React, consisting of multiple views and implementing all CRUD actions. The backend is a REST API built with ExpressJS, MongoDB, and Mongoose.

Notifications You must be signed in to change notification settings

mig-max/eventManager-frontend

Repository files navigation

EventSlap (Frontend Client)

This is the Eventslap Frontend (React App) repo.

Description

Eventslap is a Full-stack application using the MERN stack (MongoDB, Express, React, and Node.JS).

The backend is a REST API built with ExpressJS, MongoDB, and Mongoose.

It allows logged-in users to manage all the events and venues that they own in the database doing full CRUD. Anonymous users can see venues, events and free events, and also doing search by name or date. Logged-in users can create new venues and events, and view all existing ones.

Technical Requirements

  • SPA frontend, built with React, consisting of multiple views and implementing all CRUD actions.

  • Include sign-up, log-in, and log-out functionality with encrypted passwords and authorization (logged-in users can do additional things).

  • REST API backend built with ExpressJS, MongoDB, and Mongoose.

  • REST API backend with routes that perform all CRUD actions for two models (excluding the user model).

  • Backend validation and centralized error handling the REST API.

Backend

Instructions

To run on your computer, follow these steps:

  1. Clone the repository.
  2. Install dependencies: npm install.
  3. Create a .env file with the following environment variables:
    • VITE_APP_URL=http://localhost:5005
  4. Run the application: npm run dev.

Environment variables

Hosted on your localhost:

Add the following environment variables in .env files:

Server

  • PORT=<your-port> (5005)
  • ORIGIN=http:/http://localhost:5173/
  • TOKEN_SECRET=<your-token-secret>

Cloudinary credentials for image upload

  • CLOUDINARY_NAME = add-your-cloudinary-name
  • CLOUDINARY_KEY = add-your-cloudinary-key
  • CLOUDINARY_SECRET = add-your-cloudinary-secret

Client

  • VITE_APP_URL=http://localhost:5005

Creating your own deployment

Backend using adaptable.io

  • TOKEN_SECRET=<your-token-secret>

  • MONGODB_URI=mongodb+srv://<your-mongodb-atlas-password-+-name-of-db>

  • ORIGIN=<your-netlify-app-domain>

  • CLOUDINARY_NAME = add-your-cloudinary-name

  • CLOUDINARY_KEY = add-your-cloudinary-key

  • CLOUDINARY_SECRET = add-your-cloudinary-secret

Fronted using netlify.app

  • CI=false (required for SPA applications deployed on this service to redirect requests to index.html)

  • VITE_API_URL=<your-adaptable-app-domain>

  • CLOUDINARY_NAME = add-your-cloudinary-name

  • CLOUDINARY_KEY = add-your-cloudinary-key

  • CLOUDINARY_SECRET = add-your-cloudinary-secret

Screenshots

Screenshot 2024-03-14 at 12 30 15 Screenshot 2024-03-14 at 12 31 44 Screenshot 2024-03-14 at 12 32 05 Screenshot 2024-03-14 at 12 43 31 Screenshot 2024-03-14 at 12 43 10 Screenshot 2024-03-14 at 12 32 21 Screenshot 2024-03-14 at 12 32 42 Screenshot 2024-03-14 at 12 33 27

Live demo

About

Eventslap a is Full-stack application using the MERN stack (MongoDB, Express, React, and Node.JS). SPA frontend, built with React, consisting of multiple views and implementing all CRUD actions. The backend is a REST API built with ExpressJS, MongoDB, and Mongoose.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published