|
|
@@ -7,7 +7,10 @@ You can see demo in https://demo.kaajavi.com/
|
|
|
If you want to see the admin panel,
|
|
|
the default email is `admin@admin.com` and their password is `admin`
|
|
|
|
|
|
+
|
|
|
+
|
|
|
## Setup
|
|
|
+This application was developed with python 3.8
|
|
|
|
|
|
The first thing to do is to clone the repository:
|
|
|
|
|
|
@@ -19,7 +22,7 @@ $ cd BelvoApp
|
|
|
Create a virtual environment to install dependencies in and activate it:
|
|
|
|
|
|
```sh
|
|
|
-$ virtualenv2 --no-site-packages env
|
|
|
+$ virtualenv --no-site-packages env
|
|
|
$ source env/bin/activate
|
|
|
```
|
|
|
|
|
|
@@ -29,7 +32,7 @@ Then install the dependencies:
|
|
|
(env)$ pip install -r requirements.txt
|
|
|
```
|
|
|
Note the `(env)` in front of the prompt. This indicates that this terminal
|
|
|
-session operates in a virtual environment set up by `virtualenv2`.
|
|
|
+session operates in a virtual environment set up by `virtualenv`.
|
|
|
|
|
|
Once `pip` has finished downloading the dependencies:
|
|
|
```sh
|
|
|
@@ -43,20 +46,21 @@ The home page is the API documentation.
|
|
|
|
|
|
## What do you need know about the challenge
|
|
|
|
|
|
-I remove the session authentication and I didn't set up the authentication by JWT
|
|
|
+I removed the session authentication and I didn't set up the authentication by JWT
|
|
|
or similar token, so the API is open for everybody.
|
|
|
|
|
|
|
|
|
## To run in docker-compose
|
|
|
|
|
|
-I suppose you have installed docker and docker-compose. If not, try with [here](https://docs.docker.com/compose/install/)
|
|
|
+I suppose you have installed docker and docker-compose. If not, try [here](https://docs.docker.com/compose/install/)
|
|
|
|
|
|
Run:
|
|
|
```sh
|
|
|
$ docker-compose up
|
|
|
```
|
|
|
and server runs in development mode.
|
|
|
-After run, the command call db migrates, create superuser if not exists and run server in **8080 port**.
|
|
|
+When docker-compose runs, call commands for DB migrations,
|
|
|
+create superuser if not exists, and then run the server in **8080 port**.
|
|
|
|
|
|
## Tests
|
|
|
|
|
|
@@ -64,4 +68,8 @@ To run the tests, `cd` into the directory where `manage.py` is:
|
|
|
```sh
|
|
|
(env)$ python manage.py test users
|
|
|
(env)$ python manage.py test transactions
|
|
|
+```
|
|
|
+or for all:
|
|
|
+```sh
|
|
|
+(env)$ python manage.py test
|
|
|
```
|