Skip to content

nickfh7/new_dAuth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dAuth
-------

<TODO>


Install
-------
WITH DOCKER:
Build the local image with the following command (in root dir of project):
- docker build -t dauth .

Run dauth with and mongodb with:
- docker-compose -f dauth_setup.yaml up

To configure the node, edit the yaml file directly


WITHOUT DOCKER:
Set up dAuth
1. Create a virtual environment (i.e. 'virtualenv -p python3 venv'), then activate it ('source venv/bin/activate')
2. Install dAuth with 'pip install -e .'
3a. Run CCellular with 'ccellular'
3b. Run the logging server with 'logging-server'


Set up Database
1. create a new directory for the database (i.e. 'data/), and create two subdirectories 'db/' and 'replica/'
2. Set up the db and replica with the following commands (run every time you start the dbs):
   mongod --dbpath db/ --replSet rs0                    # main db
   mongod --dbpath replica/ --port 27018 --replSet rs0  # replica
3. Initialize the setup (ONLY THE FIRST TIME):
   mongo   # start mongo client
   > rs.initiate()
   > rs.add("localhost:27018")
   > rs.status()
   > rs.conf()     # To check for configuration
   > rs.slaveOk()  # To ensure that the slave / replica nodes can be enabled for read


Set up Sawtooth
<TODO>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages