GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - BPChain/api-server: RESTful API for Blockchain Data Aggregation and Controlling

This repository was archived by the owner on Jul 5, 2024. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

581 Commits
581 Commits

Folders and files

NameName
Last commit message
Last commit date
components
components
 
 
database
database
 
 
src
src
 
 
test
test
 
 
.eslintrc.yaml
.eslintrc.yaml
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
config.js
config.js
 
 
docker-compose.yml
docker-compose.yml
 
 
initDatabase.sh
initDatabase.sh
 
 
initServer.sh
initServer.sh
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

Repository files navigation

api-server

Master-Branch: Build Status Coverage Status
Dev-Branch: Build Status Coverage Status Maintainability

A simple API-Server that provides a RESTful interface for the frontend, a Websocket for the simulated Blockchain and a Database for persisting the aggregated data.

Start the Server

To start the server you have to instantiate a Docker network by executing the script only once:

./initDockerNet.sh

If an error occurs with the message: 'Error response from daemon: network with name backendnet already exists', search for the currently active Docker network with the command:

docker network ls

And delete the corresponding network with the command:

docker network rm networkname

Then try to start the docker network again. As soon as the Docker network is running you can start the MongoDB Docker with the following script. Make sure that you have set up an .env-file in the database directory with the root username and password.

./initDatabase.sh

After that you can create new users with the script './createDbUsers.sh' provided in the database directory if neccessary. Usually you only have to do this once because the database is persistent.

./database/createDbUsers.sh

And finally start the server with the script:

./initServer.sh

After the procedure you can delete the .env-file for security reasons.

About

RESTful API for Blockchain Data Aggregation and Controlling

Topics

blockchaindockerexpressjsmongoosenodejsrest-api

Resources

Readme
MIT license
Activity
Custom properties

Stars

4 stars

Watchers

5 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.