Skip to content

Reviving-Hyves/hyves-back-end

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

113 Commits
 
 
 
 
 
 
 
 

Repository files navigation

hyves-back-end

This is the back-end of the Reviving Hyves project. It is a RESTful API that is built using Django REST framework. This API is used to store and retrieve data from the database. The data is used by the front-end to display the information to the user.

Installation

Python version 3.12 Django version 4.2 Django REST framework version 3.15.2

Usage

To start a microservice in de /src folder, run the following command

cd src/[microservice]
python manage.py runserver 0.0.0.0:[port]

The lists of ports per microservice:

  • 8001: comment
  • 8002: auth
  • 8003: post

To start a celery worker (for RabbitMQ) in de /src folder, run the following command

cd src/[microservice]
celery -A [microservice] worker -l info 

To start a k6 Grafana load test, run the following command

cd src/[microservice]/tests
k6 run --out [output type | csv, json, ?] load_test.js

To build with docker and run the container, run the following command

cd src/
docker compose up --build

By Nick Welles

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors