Giter Site home page Giter Site logo

datawowassignment-fe's Introduction

DataWowAssignment-FE

This is a Next.js Page Router project that was created for Prach Boonud's Data Wow assignment. The project used Nodejs version 20 during its development so try to match the Nodejs version as closely as possible.

Running the application

You need to run the backend project first

First, we need to install the dependencies by running:

npm install

Next, after the dependencies are successfully installed, to start the application run:

npm start

Open http://localhost:3000 with your browser to see the result.

Included packages:

tailwindcss [doc]

This is a CSS framework that is attached to this project during the creation process of the project via Nextjs project creation CLI. Tailwindcss is used to style the component to match Figma's design.

react-hot-toast [doc]

Due to the use of toast in the design, this library is included to lower the development time of toast.

NextAuth.js [doc]

This package is included to deal with the authentication process of the website, specifically, JWT because my design for this assignment's backend project used JWT to authenticate users.

Page structure

|-- /
|
|-- /user
|   |-- /history
|
|-- /admin
|   |-- /history
|
|-- /auth

Homepage path('/')

This page consists of only the text "Data Wow Assignment" and acts as the landing page for unauthenticated users.

Authpage path('/auth')

This page consists of a login and signup form which is used to authenticate users.

Userpage path('/user')

This page shows all concerts including already full concerts. If the user has already made the reservation for any of the concerts, every other concert is labeled as unavailable.

UserHistorypage path('/user/history')

This page shows all of the user's reservation and cancellation logs.

Adminpage path('/admin')

This page shows all concerts including the stats of all concerts combined. The admin can delete and create a concert on this page.

AdminHistorypage path('/user/history')

This page shows the reservation and cancellation log of all users.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.