Skip to content

Tamrakar182/event-mgmt2

Repository files navigation

Event Management Task

This is the task of Young Innovations Internship for Backend development. I have decided to do the project in Nextjs to tightly integrate both the frontend and backend in a single repository.

Check it out here: Link

Features

  • CRUD for an event management web app
  • Filtering API
  • Login System
  • Frontend and Backend data validation

Requirements

In order to run the project, you need to have node installed on your machine.

Steps to run a dev enviroment

  1. Clone the repository
git clone
  1. Install all the dependencies
npm install
  1. Copy over the environment variables
cp .env.example .env
  1. Run the development server
npm run dev

Folder structure

The project structure is of a simple Next 14 project.

  • All the frontend and api routes are in the app directory.
  • Components hold resuable components
  • Context holds all the context providers
  • Hooks holds all the client side reusuable hooks
  • Sections hold all the page layouts
  • Types hold all the necessary data types and backend schemas
  • Utils hold some utilary functions

Tests

I have written some tests for testing the backend using Jest. Individual tests are put in their respective api route folder. To run the tests simply run

npm run test