-
mongodb In order to test that it was installed correctly run
mongod --dbpath=db
, inside the root of owl. -
localXpose You need to have localXpose installed as an CLI, if you want to expose your local environment to PayU. Bear in mind that you need to add
loclx
to yourPATH
.
git clone https://github.com/coinosis/owl -b dev
cd owl
npm install
npm install -g nodemon
You need a .secret
file with sensitive information about your proyect.
cp secret.template .secret # notice dot '.' prefix on .secret filename
- Fill the
PRIVATE_KEY
variable with the 0x-prefixed private key of a funded Ethereum account. It should be funded on whatever network you're operating on. - Optionally fill the YouTube variables with information about your YouTube account. Use this script to get the refresh token.
- Optionally fill the PayPal variables with your PayPal account info.
npm run start:dev
If running for the first time, run scripts/initialize.sh
.
In order to expose your local environment to a public domain for PayU transactions, run
./loclx.sh <loclx-id>
Bear in mind that you need to specify this same loclx-id
argument when runnig cow.
- Add the relevant tests in the
test
folder - Make sure all tests are successful:
npm test
(you can run a specific test file withnpm test -- test/<file>.js
) - Correct any linting errors:
npx eslint .
- Create a pull request targeting the
dev
branch
$ mongo coinosis
> users = db.getCollection('users')
> users.find()
- create a mongoDB atlas account
- create a heroku account
- deploy the code
- add the DB variable pointing to your mongoDB atlas db
- install heroku CLI
DB=$(heroku config:get DB -a <your-app-name>) scripts/initialize.sh
$ scripts/backup.sh
> backup created at ./backup/2020-06-22T18:17:32-05:00
$ scripts/restore.sh testing backup/2020-06-22T18\:17\:32-05\:00/
scripts/prod2st.sh
scritps/st2test.sh
npm run start:dev # if it's not runnig already
scripts/test2dev.sh