Go to the frontend/mainApp
directory and then run the following:
yarn install
yarn start:standalone
The server will run on http://localhost:8080/
To actually build run yarn build
Go back to the root directory and runthe following to start the django server
Create a file names .env in the backend
root directory of the cloned repo.
Then store your SECREY_KEY KEY and DEBUG variables in the file
SECRET_KEY="<YOUR_SECRET_KEY>"
DEBUG=1
python manage.py migrate
python manage.py runserver
The server will run on http://localhost:8200/
All API endpoints must end with a /
(e.g /propscts/
unless they'll be pointing to the frontend 's react routing).
The link to the documenation of APIs can be found in https://sales.zuri.chat/docs/
There are 2 root directories, backend and frontend
In the /frontend/
root directory, the rootApp and mainApp.
Firstly in /frontend/rootApp/
- Go to
/frontend/rootApp/src/index.ejs
- Go to line 33 and change
isLocal
to!isLocal
PLEASE SWITCH IT BACK BEFORE PUSHING, IT SHOULD BEisLocal
. - Then go back to
/frontend/rootApp/
and runyarn relocate
- Then go to
/frontend/mainApp/
and runyarn relocate
- Then you move to the
/backend/
root directory, run:
python manage.py collectstatic --noinput
- Then run
python manage.py runserver
.
https://sales.zuri.chat/api/v1/propsects/ https://sales.zuri.chat/api/v1/propsects/create/ https://sales.zuri.chat/api/v1/propsects/{id}/ https://sales.zuri.chat/api/v1/propsects/update/{id}/
https://sales.zuri.chat/api/v1/deals/{id}/ https://sales.zuri.chat/api/v1/deals/create/ https://sales.zuri.chat/api/v1/deals/list/ https://sales.zuri.chat/api/v1/deals/update/{id}/
https://sales.zuri.chat/api/v1/info/
https://sales.zuri.chat/api/v1/sidebar/