From 6ebfea49460d784cab0ec1dbdbabb96d0656899b Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Thu, 17 Dec 2020 09:24:45 +0100
Subject: [PATCH] specify type of code

---
 readme.md | 33 +++++++++++++++++++++------------
 1 file changed, 21 insertions(+), 12 deletions(-)

diff --git a/readme.md b/readme.md
index 5c803d80..f3546731 100644
--- a/readme.md
+++ b/readme.md
@@ -20,7 +20,7 @@ python manage.py superworker
 sudo apt-get install python3, virtualenv, libcurl4-gnutls-dev, libpng-dev, libfreetype6-dev, libpq-dev, gcc, g++, python3-dev, libgnutls28-dev, libjpeg-dev, libfreetype6-dev, git
 ```
   - install nodejs
-```
+```bash
 curl -sL https://deb.nodesource.com/setup_14.x | bash -
 apt-get install nodejs
 ```
@@ -28,17 +28,22 @@ apt-get install nodejs
 
 ## Developer project installation
   - clone smasch:
-```
+
+```bash
 git clone ssh://git@git-r3lab-server.uni.lu:8022/NCER-PD/scheduling-system.git
 ```
+
   - setup virtualenv with clean python3 working environment and start using it. Important python3.6 or higher is required
-```
+
+```bash
 cd scheduling-system
 virtualenv env -p python3
 . env/bin/activate
 ```
+
   - install smasch dependencies
-```
+
+```bash
 pip install -r requirements.txt
 pip install -r requirements-dev.txt
 npm install
@@ -63,7 +68,7 @@ DATABASES = {
 
 - postgresql database configuration looks like:
 
-```python3
+```python
 DATABASES = {
     'default': {
         'ENGINE': 'django.db.backends.postgresql_psycopg2',
@@ -88,12 +93,14 @@ After database connection is configured setup a database by applying migration s
 
 ## Development    
 Remember, that before working you have to activate _virtualenv_, by:
-```
+
+```bash
 devel@host ~/home/smash/scheduling-system $ . env/bin/activate
 ```
 
 In order to run development server, run:
-```
+
+```bash
 devel@host ~/home/smash/scheduling-system/smash $ ./manage.py runserver
 ```
 and go to `127.0.0.1:8000` in browser
@@ -110,7 +117,8 @@ pip install psycopg2 --global-option=build_ext --global-option="-I/usr/local/Cel
 
 ## Production deployment
 Smasch can be deployed using debian package provided in lcsb repository:
-```
+
+```bash
 echo "deb http://repo-r3lab.uni.lu/debian/ stable main" | tee /etc/apt/sources.list.d/repo-r3lab.list
 sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0xcb185f4e31872412
 apt-get update
@@ -118,7 +126,8 @@ apt-get install -y smasch
 ```
 
 After smasch is installed you can start/stop it using systemd:
-```
+
+```bash
 service smasch start
 service smasch stop
 ```
@@ -130,7 +139,7 @@ Configuration of smasch (`local_settings.py`) is in `/etc/smasch/smasch.py`.
 ### Disable two steps authentication for a specific user
 
 
-```
+```bash
 ./manage.py two_factor_disable ${USERNAME}
 ```
 
@@ -138,7 +147,7 @@ Configuration of smasch (`local_settings.py`) is in `/etc/smasch/smasch.py`.
 
 to import public holidays run:
 
-```
+```bash
 ./manage.py holidays ${YEARS}
 ```
 
@@ -146,6 +155,6 @@ where ${YEARS} should be a space separated list of years for which the holidays
 
 example:
 
-```
+```bash
 ./manage.py holidays 2017 2018 2019
 ```
-- 
GitLab