Skip to content
This repository has been archived by the owner on Oct 5, 2024. It is now read-only.

Latest commit

 

History

History
139 lines (94 loc) · 3.42 KB

README.md

File metadata and controls

139 lines (94 loc) · 3.42 KB

Hvordan kjøre lokalt (om jeg husker riktig hehe). Send mld i slack om det dukker opp en feilmelding):

  1. Klon repoet (kjør "git clone https://github.com/dotkom/autobank.git" i mappen du ønsker å klone til).
  2. sørg for å ha node.js installert
  3. kjør npm install --global yarn i terminalen
  4. lag .env.local-fil i root (mappen som heter "autobank") og lim inn tekst fra slack
  5. Kjør "yarn dev" i terminalen fra "autobank"-mappen.

Pennywise Macrosystem

A website created for managing Bankom tasks and applications bullt with Nextjs

purpose

This a website to gather all information for bankom, and handle request from outside the comitee. And allow bankom to organize its internal systems This will include a remaking kvittering.online.ntnu and faktura.ntnu.no into a single website along with relevant FAQ and a new form for requests to onlinepotten.
The Purpose of this is to create a dashboard for Bankom with the abaility to:

  • Approve or deny requests to all forms, and give the users a chance to change the request if something is wrong without having to send a new request
  • Assign recipts and invoices to events
  • keep track of money spent for events and budget items

Setup

Make sure you have Node.js installed. Preferably version 14^

#install yarn
npm install --global yarn
# Install dependencies
yarn
# start development server
yarn dev
# Run the bot
yarn build

Code organization

Generally follow nextjs guidelines

File structure

Pages

Public

home - landing page

recipt - create a porposal/request for a recipt to be payed back request shuold apprear on the adminpage and be able to be denied and changed.

Onlinepotten - create request for economical support for work that helps Online as a organization

FAQ - A simple FAQ for all relevant economy related questions

/
/recipt
/onlinepotten
/faq

Admin

home - landing page

idk - A page for connecting recipts, invoices ....

recipt - handle recipts and deny with the possibility for the user ot improve on the request and edit simple mistakes with the user getting an email of the change
also have the ability to se former recipts and register new ones as paid

Onlinepotten - deny and apporove request as well as se amount spent paid and waiting for recipts belonging to the request

FAQ - A simple FAQ for all relevant economy related questions just for bankommembers

/admin
/admin/idk
/admin/recipt
/admin/onlinepotten
/admin/faq

Api

Backend

All connectons to the db

Technology

Frontend

  • nextjs
  • tailwindcss

Api

  • nextjs API

database

  • postgres db?

Testing

in the future some e2e tests and unit tests

File Structure

/.next # built website
/components # Components for the pages
/interfaces # types and interfaces
/node_modules
/pages # Pages for urlaccess
/styles # CSS styles that doesn't fit tailwindcss
/utils # utilities
.ignore # Files to ignore in git
CONTRIBUTING.md # guidelines for contributions
next-env.d.ts # do not edit
package.json
postcss.config.js
README.md
tailwind.config.js # location of theme and css classgenerations
tsconfig.json
yarn.lock

Contributing

If you have suggestions for how Pennywise Macrosystem could be improved, or want to report a bug, open an issue!

For more, check out the Contributing Guide.

References

empty