Commit 797baf35 authored by Adam Fekete's avatar Adam Fekete
Browse files

more testing of mongodb

parent 4b9f7460
......@@ -2,10 +2,27 @@
# Fireworks (Five-minute quickstart)
https://materialsproject.github.io/fireworks/quickstart.html
%% Cell type:markdown id:australian-firewall tags:
Testing mongodb connection:
%% Cell type:code id:referenced-routine tags:
``` python
import pymongo
client = pymongo.MongoClient(
host='mongo',
username='',
password='',
authSource='admin'
)
client.list_database_names()
```
%% Cell type:markdown id:gorgeous-curve tags:
## Start FireWorks
If not already running, start MongoDB (if your MongoDB is hosted and maintained externally, follow the note below regarding lpad init):
......@@ -15,24 +32,24 @@
``` python
# !lpad init
```
%% Cell type:code id:increasing-context tags:
``` python
!cat my_launchpad.yaml
```
%% Cell type:markdown id:white-owner tags:
Reset/Initialize the FireWorks database (the LaunchPad):
%% Cell type:code id:entertaining-scotland tags:
``` python
# !lpad reset
```
%% Cell type:code id:increasing-context tags:
``` python
!cat my_launchpad.yaml
! echo 'y' | lpad reset
```
%% Cell type:markdown id:numerous-regard tags:
## Add a Workflow
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment