Giter VIP home page Giter VIP logo

crypto-portfolio-backend's Introduction

Crypto Portfolio Backend

How to start this project with docker container environment

  1. Start PostgreSQL Database
docker compose -f docker-compose-postgres.yml up -d 
  1. Prepare CoinMarketCap API key
  1. Prepare environment file
cp .env.example .env
  • Fill PORT for set service serve
  • Fill your database secret (use IP address in DB_HOST)
  • Fill your JWT_SECRET for use in JWT authentication
  • Fill JWT_EXPIRES_IN for set How long JWT token will expires expiresIn: expressed in seconds or a string describing a time span vercel/ms
  • Fill your COIN_MARKET_BASE_URL (look at the document for get API Domain from document)
  • Fill your COIN_MARKET_API_KEY
  1. Start Backend service using docker
 docker compose up crypto-port-service -d
  1. Start Frontend from this repository crypto-portfolio-frontend

How to start this project (locally)

  1. Install Dependencies
npm install
  1. start Postgres database using docker compose
docker compose -f docker-compose-postgres.yml up -d 
  1. Prepare CoinMarketCap API key
  1. Prepare environment file
cp .env.example .env
  • Fill PORT for set service serve
  • Fill your database secret (in this example is good and can use for run locally)
  • Fill your JWT_SECRET for use in JWT authentication
  • Fill JWT_EXPIRES_IN for set How long JWT token will expires expiresIn: expressed in seconds or a string describing a time span vercel/ms
  • Fill your COIN_MARKET_BASE_URL (look at the document for get API Domain from document)
  • Fill your COIN_MARKET_API_KEY
  1. Start local (develop mode)
npm run start:dev
  1. Start Frontend from this repository crypto-portfolio-frontend

Note: To fetch new cryptocurrency detail please make request with method POST to api endpoint /cryptocurrency/fetch-and-store and attatch user JWT token in headers name Authorization and value is Bearer your-jwt-token

crypto-portfolio-backend's People

Contributors

saman-waruka 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.