https://github.com/generic-matrix/openocean
https://github.com/generic-matrix/openocean
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/generic-matrix/openocean
- Owner: generic-matrix
- Created: 2021-11-23T05:16:46.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-11-23T05:16:48.000Z (over 4 years ago)
- Last Synced: 2025-02-27T17:41:37.133Z (over 1 year ago)
- Language: JavaScript
- Size: 63.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
## Define the .env file inside the api folder
CLIENT_ID=
CLIENT_SECRECT=
MONGODB_URL=
USERS_COLLECTION=users
TOKEN_COLLECTION=tokens
DB_NAME=OpenOcean
SECRECT_PASSPHASE=
PUBLIC_ENDPOINT=http://localhost
PUBLIC_PORT=3000
TEST_ADDRESS=
TEST_GOOGLE_TOKEN=
## Run the test to test the solidity functions :
truffle development
test --network ganache
migrate --network ganache
## Run the test of functins /api
function-index.js using npm run function-test
api-test.js using npm run api-test
## Run the API
node index.js