This projects has two major components the backend built with jaseci and the frontend with remix. The main component is the backend . Through jaseci we are able to expose many apis that can carry out crud functionality and processes. All these Apis are avaliable to any user with the proper credientials.These apis allow for fine control of the application. The main endpoint that will be hit when a email is received can be replicated by hitting the end point 'email_trigger'
- open a terminal in the root of the code directory.
- Build the Image for the application by running :
docker build -t sbm -f Dockerfile .
- Run the Image. This will start a jaseci server will all the AI modules loaded . You can check localhost:8000 to see if the container is running.
`Note : rename the container to sbm by using this command :
docker rename [container_id] sbm
- Create a Superuser so you can login to the server by running :
docker exec -it [container ID] jsserv createsuperuser
- You can then log in to the server by running the following command on the docker container :
docker exec -it sbm jsctl -m
This will launch a jaseci terminal .
- Build you Jac Application and log in to your server :
script scripts/build
script scripts/load
This will get you server up and ready to make API calls.
-
cd in to frontend
-
Replace the enviroment variables with your server url and token .
-
Run this to build:
docker build -t remix -f remix.DockerFile .
- Run this to start the container :
docker run -p 3000:30000 remix
all walkers
are essentially an api. To call any of the apis,
make a post request to http://locahost:8000/js/walker_run with your user token.
the body of the json body will follow this format :
{
"name_of_walker",
"ctx" : {
"attribute_1" : "value",
"attribute_2" : "value"
}
}
1.Expose public call back url