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.pyand don't play dumb. -
Don't forget to set
DEBUGto true in yourlocal_settings.py -
Run
pip install -r requirements.txt -
Run
python manage.py migratethenrunserver
TO USE SMTP EMAIL.
-
Create a dummy google mail account or use existing google mail account
-
Afterwards on your
local_settings.pyaddEMAIL_HOST_USERandEMAIL_HOST_PASSWORDfields -
Set
EMAIL_HOST_USERto the account email andEMAIL_HOST_PASSWORDto account password
ON THE FRONTEND.
located in (../<project_root>/assets/scripts/fe/)
-
Run
npm installto 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:cssif 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).