GithubHelp home page GithubHelp logo

lancie-admin's Introduction

AreaFiftyLAN

This site is still under construction. This is not in use yet :(.

Development

Dependencies

To start development, you need some dependencies to get it all up and running. Most actual dependencies are run with Docker, so it should be fairly simple to run. The dependencies are:

It's advised to develop using a UNIX based operating system (Linux or macOS mostly), as Windows can sometimes give weird issues. You are welcome to still use Windows, but know that only limited support can be given.

Starting Up

Development is done locally, with the services it depends on running with Docker. To start the dependencies, a Docker compose file is provided. This can be start with:

docker-compose up

This exposes several services:

  • The Postgres database to connect to, accesible at the default port 5432.
  • An Adminer instance, to explore the database, accesible at localhost:8080.
  • Mailcatcher SMTP server, at port 1025.
  • Mailcatcher to view the outgoing email at localhost:8081.

Now to start the actual application, install the dependencies first:

yarn install

The database has to be set up separately. Fortunally it's also very simple, to create the structure you can run the following command:

yarn migrate-dev

Now to seed the database with some sample data found in server/prisma/seed, you can run the following command.

yarn seed

Now you can start the server and visit it on localhost:3000:

yarn dev

Resetting

It's possible that the database enters an invalid state because of an programming error. You can either fix this manual at the database interface, but it's easier to just reset.

This can be done by stopping the development server, running the following command, and start the server again:

yarn migrate-reset

You should now be able to start the server again with a fresh database. The seeding script is also run for you.

Design

The design can be found here. With this link you can only view the design. If you also want to apply changes ask Marit for permission.

lancie-admin's People

Contributors

ardyz avatar bramvankooten avatar dependabot[bot] avatar elarb avatar fastjur avatar francisbehnen avatar julian9499 avatar martijnjanssen avatar matthijskok avatar praseodym avatar sebastien1999 avatar skamoen avatar timhuisman1 avatar timovanasten avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lancie-admin's Issues

Progress for check-in and consumption

As requested by the crew:

  • Show what percentage of users are already checked in
  • Show what percentage of users already consumed a certain consumption

Additionally, have a checkbox that hides users from the table that already checked in/ consumed a consumption.

Navigation Bar grey bar bug

When navigating to a page in the navigation bar, and then clicking the text again (exactly the text, not the bar) the grey bar dissappears.

Logging endpoint

The API has an endpoint for logs at /api/v1/management/logfile.
Each line contains a json object (it's not an array!) with a log statement. For quick reviews, admin should have a page with the last couple of hours of log files.

Parsing the json would be nice, but MVP is just a call to the endpoint with some Http Range headers

Implement CRUD

This grid or table will contain the data loaded in from the API, and can edit and delete that data.

Show user's birth date at the rfid assign page for legal confirmation

Right now the users birth date is not visible from the rfid assign page. This page will be used to check users into the event. This is also when the id check happens and thus it would be useful to cross check the users birth date with their that on their id during this process.

Implement dashboard

This dashboard will contain graphs, and up to date numbers about various amounts.

Logo is missing

I don't know why, but the logo has disappeared from the page.

Pickup-service visualization & route planning

Tickets that have the Pickup service also have an address. This can be used for a visualization in a Google Maps element. Possibly even a route can be planned, ready for export.

Reload loop in progress page

In Firefox, the reload bug is there again on the progress page. Caused by a wrong relative link, it keeps loading /src/src/src..../src/

image

Filter out functionality that is not for the user security level

Not all users have access to everything in the adminpanel, we can use css selectors to filter out content that the user is not supposed to see. The api will deny all requests that are incorrect, so we only have to think about not showing the buttons/content. The css selectors that would be suitable for this can be found here.

Add download button for email list

Add button to download a enter-delimited .txt file containing one of the following:

  • Email addresses of all users
  • Email addresses of all users that purchased a ticket for this year
  • Email addresses of all users currently selected

This would simplify the emailing process when we don't want to use the sendCustomMailToCollection() endpoint in the API.

Readme does not include a quickstart dev guide

Currently the readme tells the user to run polymer serve for viewing the front end locally, but the front-end requires a login. This login will be routed through a relative api path. This path will only work when you run the project with yarn run dev which proxies the api path to the api, which is also required to be able to run this.

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.