requirements: this project needs docker as well as docker-compose and a stable internet connection
steps to run the project:
- create a tapsell.env file from the template and add your preferred configurations (if port 80 on your server is in use you can change the publish port in line 59 on docker-compose.yml)
- run the following command
docker-compose up -d
- use
./import_csv.sh /your/csv/file/location
to import data to mongodb (you should follow the init.csv file format and use id and ctr as titles and ',' as delimiter) - now you cand send your requests to http://your_server_ip/
- after about 15 minutes /stats/ endpoint will be ready to receive requests
- (optional) you can use
./remove_all.sh
to delete all the changes on docker