Git Product home page Git Product logo

ticketer's Introduction

Ticketer

A dead simple ticket service web app. Made in about a month from scratch as a university project.

Home Page

More screenshots are here

Tech Stack

Ticketer is built on top of these languages, frameworks, and tools:

  • Backend:
    • Go
    • iris web-framework
  • Frontend:
    • Typescript
    • Sveltekit
  • Database:
    • PostgreSQL

Getting started

To get started deploying Ticketer for whatever reason. You can follow the steps below.

Requirements:

Step 0: Setup your environment

After installing the requirements, you have to setup your environment for both the backend and frontend.

  1. Create a new database in Postgres.

  2. Rename config.example.yaml to config.yaml and update everything to match with your requirements. (Especially the jwt_key and database)

  3. Rename .env.example from the frontend/ folder to .env.local and update API_HOST with api_addr you've set from step 0.2.

Step 1: Start the backend

# Build the backend.
go build .
# Run the server.
./Ticketer
# or .\Ticketer.exe if you're on Windows.

Step 2: Add some mocked data.

Ticketer doesn't come with an admin panel or anything like that; it just reads the movies from the database. so you have to add them yourself.

With that said, I already added a few random movies in sql/mock/movies.sql. execute it in your database.

You can also see the movie assets used for this sample data in the static/movie folder.

Step 3: Start the frontend:

# Install the dependencies
pnpm install
# Build the frontend
pnpm build
# Preview
pnpm preview --port 5173

Keep in mind that the backend is hardcoded to use port 5173 for proxying the frontend, so if you're not using it behind a reverse proxy, be sure to use this port for the frontend.

Step 4: You're done!

Now open up the backend host (api_addr from step 0.2) in your browser and explore this project!

ticketer's People

Contributors

haashemi avatar dependabot[bot] avatar

Stargazers

Ahmad Amoori avatar Pavel Rusakov avatar

Watchers

 avatar

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.