Skip to content

OkularID/RSTemplates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reservasi Dulu Frontend Templates

Clone the core repository to you local machine

$ git clone [email protected]:icoldplayer/events.git

# move to events directory
$ cd events

Once you get the core project cloned into you machine, next is to clone the frontend / template.

$ mkdir frontend & cd frontend 

# clone the frontend repo
$ git clone [email protected]:OkularID/RSTemplates.git

Create virtual environment on you machine

$ python -m venv env

# activate it
$ source env/bin/activate

Install the project dependencies:

$ pip install -r requirements.txt

Makemigrations & migrate

Linux / Mac

# makemigrations
$ ./manage.py makemigrations

# migrate the dbs
$ ./manage.py migrate

# create superuser
$ ./manage.py createsuperuser

Windows

# makemigrate
$ python manage.py makemigrations

# dbs migrate
$ python manage.py migrate

# create user
$ python manage.py createsuperuser

Once all the project dependencies installed, you can now run the server with:

# linux / mac
$ ./manage.py runserver

# windows
$ python manage.py runserver

To compress all assets objects, we use compressor init.

./manage.py collectstatic

./manage.py compress

Those command only works if the DEBUG = False.

That's all, and you're ready to go.

That's all.