GithubHelp home page GithubHelp logo

cryptowallet's Introduction

CryptoWallet

This repository contains the source code for the CryptoWallet app.

Building the App

To build the app, follow these steps:

  1. Make sure you have Docker installed on your system.

  2. Open a terminal or command prompt.

  3. Navigate to the root directory of this repository.

  4. Run the following command to build the Docker image:

    docker build -t cryptowallet .
    

Running the App

To run the app, use the following steps:

  1. After successfully building the Docker image, run the following command:

    docker run -p 8000:8000 cryptowallet python manage.py runserver 0.0.0.0:8000
    
  2. Open a web browser and visit http://localhost:8000/admin to access the running app admin page with login: admin and pass: admin. For test purpose only dummy admin user was restored from db backup in process of build. In production environment db backups pushed into repos should be strongly avoided!

Running tests

To run unit tests, use the following command:

  1. After successfully building the Docker image, run:

     docker run cryptowallet python manage.py test crypto_addresses.tests.tests
    

API docs

Create Address

  • Method: POST
  • URL: /api/addresses/
  • Description: Create a new address for a specific cryptocurrency.

Request Body

{
"cryptocurrency": "BTC"
}

Response

Status: 201 Created
Body:

{
"address": "newly_generated_address"
}

Retrieve Addresses

  • Method: GET
  • URL: /api/addresses/
  • Description: Retrieve a list of all addresses.

Response

Status: 200 OK
Body:

[
{
"address": "address_string"
},
...
]

Retrieve Address by id

  • Method: GET
  • URL: /api/addresses/<int: id>
  • Description: Retrieve address

Response

Status: 200 OK
Body:

{
"address": "address_string"
}

cryptowallet's People

Contributors

oleksandr-vinnichuk avatar kukirokuk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.