This is the internal system of Swiftkind. It contains the HR, Payroll, Accounting, and History Systems
..after cloning it. (make sure to set a virtualenv or f**k off)
this runs perfectly on python3.6
so install that version or higher but not lower, OK?
ON THE BACKEND.
-
Setup the configuration
settings.py
. PLEASE create alocal_settings.py
and don't play dumb. -
Don't forget to set
DEBUG
to true in yourlocal_settings.py
-
Run
pip install -r requirements.txt
-
Run
python manage.py migrate
thenrunserver
TO USE SMTP EMAIL.
-
Create a dummy google mail account or use existing google mail account
-
Afterwards on your
local_settings.py
addEMAIL_HOST_USER
andEMAIL_HOST_PASSWORD
fields -
Set
EMAIL_HOST_USER
to the account email andEMAIL_HOST_PASSWORD
to account password
ON THE FRONTEND.
located in (../<project_root>/assets/scripts/fe/
)
-
Run
npm install
to download and install the dependencies -
Run
ng build
. If you are going to add changes, add--watch
If you want to change the style. This project is using SASS
Styling files are located in (../<project_root>/assets/scripts/fe/src/assets/
)
- go to the directory path and run
compass watch
(if you are using compass),sass --watch sass:css
if not.
In-case font-files or images are not found. You need to symlink the files to the backend assets directory. why? go figure.
Backend assets (../<project_root>/assets/
)
Frontend assets (../<project_root>/assets/scripts/fe/src/assets/
)
- to symlink a directory Run
ln -s
sudo ln -s <project_root>/assets/scripts/fe/src/assets/fonts/ <project_root>/assets/
sudo ln -s <project_root>/assets/scripts/fe/src/assets/images/ <project_root>/assets/
DO NOT SYMLINK THE WHOLE ASSETS
directory. (I will fire you serious face)
Everything is straightforward so IF
you still cannot make it to run, please re-visit your programming skills (you might need to).