You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32-2Lines changed: 32 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# SpamBrainz API
2
2
An API to classify editor account using LodBrok(keras model) in the backend. Also has an option to retrain the model for future enhancement by taking incorrect predictions into consideration as per SpamNinja feedback.
3
3
4
-
### Steps to run the API:
4
+
### Steps to run the API
5
5
6
6
1) Install all the dependencies needed in virtual environment:
7
7
@@ -41,4 +41,34 @@ This should run the API in the specified port in debug mode
41
41
42
42
The detailed internal functioning of API is present [here](spambrainz/app/README.md)
43
43
44
-
The request used, their details and the output are present [here](spambrainz/README.md)
44
+
The request used, their details and the output are present [here](spambrainz/README.md)
45
+
46
+
### Dockerization for testing
47
+
48
+
- Having a docker container of the application would help for further testing with different datasets.
49
+
50
+
- To do this, one must have docker installed in your local machine.
51
+
52
+
- A Redis Docker container instance is needed to be used by our application. To run a Redis Docker instance, run the following command:
53
+
54
+
55
+
```
56
+
$ docker run --name rdb -p 6379:6379 redis
57
+
# if already present remove it using
58
+
$ docker rm rdb
59
+
60
+
```
61
+
62
+
- After Redis is running go to another folder and run the Dockerfile to start the API.
63
+
64
+
- After this run the following command in spambrainz directory to build the docker image.
65
+
66
+
```
67
+
$ docker build -t spambrainz:latest .
68
+
```
69
+
70
+
- Now, you have the build ready with you. Run the build with the following command
0 commit comments