Code Monkey home page Code Monkey logo

plutus-backend's Introduction

Plutus Backend

Running the backend

Build and run the Docker Compose file docker-compose.yml in this project's root directory:

docker-compose up

Development setup

From this project's root directory install the required node packages:

npm install

Run the node.js server:

node .

Note that a PostgreSQL database service needs to run on the system.

PostgreSQL

Install PostgreSQL 14:

sudo apt install postgresql-14 postgresql-contrib

There are three main commands to use the PostgreSQL service:

sudo service postgresql status
sudo service postgresql start
sudo service postgresql stop

Switch to the postgres user:

su postgres

Create a database with the name postgres:

createdb postgres

To drop (delete) the database postgres:

dropdb postgres

Log in without a password:

sudo -u postgres psql postgres

Change the password:

ALTER USER postgres WITH PASSWORD 'password';

Using WSL2

When running inside a Windows Subsystem for Linux it is recommended to set up a port proxy to map internal ports to external ones. To do this the PowerShell script wsl2-portproxy.ps1 is included in this project's root directory. First, set execution policy on Windows:

Set-ExecutionPolicy RemoteSigned

Then, run the script on Windows:

PowerShell wsl2-network.ps1

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.