Coder Social home page Coder Social logo

ps1-project's Introduction

Boekingssysteem museum

Deze repo bevat de code voor een webapplicatie geschreven in Django. Deze is ontwikkeld met als doel het hele boekingsproces voor een bezoek aan een museum voor een groep met gids te vergemakkelijken.

Het is geschreven als eindproject voor het vak Professional Skills met als klant het bezoekerscentrum Pas-sage van OPZ Geel.

Meer informatie en uitleg is te lezen in de documentatie. Of in (pdf-formaat).

Gebruikte technologieën

  • Python (programmeertaal)
  • Django (webframework)
  • Cron (achtergrondtaken)
  • HTML/CSS (frontend)
  • Bootstrap (frontend)
  • Postgres (database)
  • Supabase (database hosting)
  • Vercel (serverless hosting)

Development installatie

  1. Clone de repo
git clone https://github.com/janpeterd/PS1-project.git
  1. Maak een virtuele Python-omgeving aan
cd PS1-project/
python3 -m venv venv
  1. activeer virtuele Python-omgeving

MacOS en Linux:

source venv/bin/activate

Windows PowerShell:

venv\Scripts\activate
  1. Installeer Python packages met pip
pip install -r requirements.txt
  1. settings.py instellen voor lokale development
    • Voor deze stap moet je een .env file toevoegen met gegevens (databaseinformatie, django-secret-key, e-mailgegevens) die met de commando python os.environ.get("NAME") opgehaald worden. OF
    • verander alle lijnen met python os.environ.get("") door je eigen gegevens (database,e-mail, ...)
# voeg localhost toe aan vertrouwde domeinen
ALLOWED_HOSTS = ["localhost"]

# zie errors in browser
DEBUG = TRUE
  1. Database migratie/setup
python3 manage.py makemigrations
python3 manage.py migrate
  1. Start development server
python3 manage.py runserver

Normaal gezien is deze nu zichtbaar op localhost:8000.

Deploy Vercel

Om naar Vercel te deployen moet je deze repo importeren in Vercel en alle environment variables invullen (of .env-bestand plakken).

ps1-project's People

Contributors

janpeterd 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.