Something about the project.
Tools we use
Client
npm install
inside the client
directory.Server
pip install -r requirements.txt
(located under server
directory).cd server/config
then cp local_settings.template local_settings.py
and modify it by your local settings.python manage.py migrate
.python manage.py import_data
.python manage.py runserver
.Client
ng test
to execute the unit tests via Karma.ng e2e
to execute the end-to-end tests via Protractor.Server
pycodestyle --show-source --max-line-length=119 --exclude=server/whatsbuzz/migrations --show-pep8 server;
to check for PEP-8.Client
Run npm run i18n
to create xlf
files.
Server
To make new strings for translation use the command
python manage.py makemessages -l he
python manage.py compilemessages -l he
Client
ng build --prod --aot
inside the client
directory.firebase deploy
to deploy to deploy to Firebase.Server
python manage.py migrate
.python manage.py createsuperuser
.python manage.py collectstatic
.STATIC_URL
point to your CGP CloudStorage.gsutil defacl set public-read gs://<your-gcs-bucket>
.gsutil rsync -R static/ gs://<your-gcs-bucket>/static
.SECRET_KEY
to settings.py
.server/config/local_settings.py
file.gcloud app deploy
.