Skip to content

Latest commit

 

History

History
86 lines (58 loc) · 2.41 KB

README.md

File metadata and controls

86 lines (58 loc) · 2.41 KB

Ticketing System Frontend

This is the frontend for a ticketing system used for events at the Instituto Federal de Educação, Ciência e Tecnologia de São Paulo, Campus Cubatão. Built with Next.js, this application provides a seamless experience for managing and purchasing event tickets.

Table of Contents

Features

  • Event Listing: View a list of all available events at the Instituto Federal de São Paulo, Campus Cubatão.
  • Ticket Purchase: Secure and simple process for purchasing tickets.
  • User Authentication: Users can sign up and log in to manage their ticket purchases.
  • Responsive Design: Optimized for all devices, including desktops, tablets, and mobile phones.

Getting Started

To get started with the project, clone the repository and follow the installation instructions below.

Installation

  1. Clone the repository:

    git clone https://github.com/ifspcbt-devspace/ifsp-eventos-web.git
    cd ifsp-eventos-web
  2. Install dependencies:

    npm install

Running the Application

To run the application in development mode:

npm run dev

The application will be accessible at http://localhost:3000.

Environment Variables

Make sure to configure the following environment variables before running the application:

  • IRON_SESSION_PASSWORD=123456789
  • API_BASE_URL=https://example.com/v1

You can create a .env.local file in the root of the project to store these variables:

IRON_SESSION_PASSWORD=123456789
API_BASE_URL=https://example.com/v1

Docker Deployment

This project includes a Dockerfile for easy deployment. To build and run the Docker container:

  1. Build the Docker image:

    docker build -t ifsp-eventos-frontend .
  2. Run the Docker container:

    docker run -p 3000:3000 --env-file .env.local ifsp-eventos-frontend

The application will be accessible at http://localhost:3000.

Contributing

Contributions are welcome! Please make sure to base your pull requests on the develop branch.

License

This project is licensed under the MIT License.