Skip to content

OkularID/ReservasiDulu

Repository files navigation

Okular Events App Management

Project Dependencies

Django3.x
PostgreSQL
Redis
Gmail

The application itself has three modules.

  • Birthday
  • Event
  • Wedding
Development
# clone the repository
git clone https://github.com/OkularID/ReservasiDulu


# move into it
cd events


# create your own virtual environment and activate it
python -m venv env
# for windows powershell
env/Scripts/activate
# for Linux (Ubuntu/Debian based)
source env/bin/activate


# install all the dependencies
pip install -r requirements.txt


# run the server
# (Ubuntu/Debian) based
./manage.py runserver


# Windows PowerShell
py manage.py runserver
Migrating the database:
# makemigrations
./manage.py makemigrations 

# migrate the database
./manage.py migrate

# create the superuser
./manage.py createsuperuser

Todo lists:

  • Adding event for each logged in user
  • Adding more option to choose in the admin dashboard
  • Adding multiple form (input choice) for user to choose the price of the events
  • Adding dashboard
  • Adding payment
  • Adding template models to use multiple template choices

Project Structure

main_template

  • style.css
  • app.js

dev_template

  • global_front

    • whatever_fonts.ttf
    • another_whatever_fonts.ttf
    • another_what_the_fuck_fonts.ttf
  • global_style

    • default.css
    • owl_carousel.css
    • bootstrap.min.css
  • template_1

    • style.css
  • template_2

    • style.css
  • template_3

    • style.css

Development tutorial.

How to contribute

  • Fork ke masing-masing akun.
  • Clone menggunakan git dengan perintah:

git clone https://github.com/USERNAME/ReservasiDulu.git nama_folder

atau

git clone [email protected]:USERNAME/ReservasiDulu.git nama_folder

Rubah bagian username di atas dengan username masing-masing setelah melakukan Fork. kedua perintah di atas sama saja (menggunakan method SSH dan HTTPS).

Setelah melakukan Fork dan clone ke local / komputer kita, kita sudah bisa melakukan development.

Cara melakukan push ke repository kita

git init

git add .

git commit -m "isi pesan"

git push origin master

Cara melakukan pull request / PR Klik Pull Request pada bagian bawah seperti di gambar ini:

image

Isikan pesan / comment lalu pilih tombok Create Pull Request yang berwarna hijau di bagian kanan bawah

image

Selama terdapat notifikasi Able to merge artinya kita aman untuk melakukan Pull Request / PR kepada repository utama / master.

image

Setelah itu tunggu hingga terdapat notif button berwarna biru bertuliskan merged, yang artinya Pull Request kita telah diterima oleh master.

image

Issue

Jika ada yang tidak dapat diselesaikan, maka sangat dianjurkan untuk membuka issue / discussion pada repository master agar masalah tersebut dapat diselesaikan bersama-sama.

Update Repository With Original Master

# Verify current remote repo
$ git remote -v
> origin  https://github.com/YOUR_USERNAME/YOUR_FORK.git (fetch)
> origin  https://github.com/YOUR_USERNAME/YOUR_FORK.git (push)


# add remote upstream
$ git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git


# fetching from upstream branch
$ git fetch upstream
> remote: Counting objects: 75, done.
> remote: Compressing objects: 100% (53/53), done.
> remote: Total 62 (delta 27), reused 44 (delta 9)
> Unpacking objects: 100% (62/62), done.
> From https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY
>  * [new branch]      master     -> upstream/master


# checkout to local master
$ git checkout master
> Switched to branch 'master'

# or 

> git checkout master
M	README.md
Already on 'master'
Your branch is up to date with 'origin/master'.


# Merge the change from [upstream/master] into your local [master] branch
$ git merge upstream/master
> Updating a422352..5fdff0f
> Fast-forward
>  README                    |    9 -------
>  README.md                 |    7 ++++++
>  2 files changed, 7 insertions(+), 9 deletions(-)
>  delete mode 100644 README
>  create mode 100644 README.md

# or

$ git merge upstream/master
> Updating 34e91da..16c56ad
> Fast-forward
>  README.md                 |    5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)

That's it and you are ready to go!.