https://github.com/singhhp1069/nodejs_crud_blockchain-basic
https://github.com/singhhp1069/nodejs_crud_blockchain-basic
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/singhhp1069/nodejs_crud_blockchain-basic
- Owner: singhhp1069
- Created: 2017-10-17T14:48:48.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-17T15:20:40.000Z (over 8 years ago)
- Last Synced: 2025-02-09T12:43:04.001Z (over 1 year ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Basic Task
A simple CRUD application with a relational database back‑end that implements Blockstarter 1.0
APIs
- Projects
-`POST /projects` creates a new Project
- `GET /projects/:id` retrieves one Project
- `GET /projects` retrieves all Projects
- `PUT /projects` updates one Project
- `DELETE /projects` deletes one Project
- Backers
- `PUT /backers/addbalance` to add an amount X to the Backer's account balance
## Development Setup
1. Install Docker on your laptop (recommended: install the Docker Toolbox which includes useful tools like Docker Compose and Kitematic)
- https://docs.docker.com/toolbox/overview/
- Optional but helpful: set up bash aliases
- https://kartar.net/2014/03/useful-docker-bash-functions-and-aliases/
- https://github.com/tcnksm/docker-alias/blob/master/zshrc
## Getting Started
- Open your command line in the _exercise3_ directory.
- Run the command `docker-compose up --build`
Alternatively, you can bring the services up in the background using detached mode with `up`, see what's going on with `ps` and remove the containers entirely (including data volumes used by mongodb) via `down --volumes`:
- `docker-compose up -d --build`
- `docker-compose ps`
- `docker-compose down --volumes`
You can then open Kitematic (refresh) and view your containers and the logs in a nice UI.