Giter VIP home page Giter VIP logo

habit-tracker-backend's Introduction

Setup

Fedora 31

  1. Install the JAVA 11 JDK

sudo dnf install java-11-openjdk-devel.x86_64

To verify, run which java, it should be the default /usr/bin/java

  1. Add the following to your ~/.bashrc
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-11.0.5.10-0.fc31.x86_64/
export PATH=$JAVA_HOME/bin:$PATH

To verify, run source ~/.bashrc && which java, it should point to the new JDK e.g /usr/lib/jvm/java-11-openjdk-11.0.5.10-0.fc31.x86_64/

  1. Install Jmods to work with VS code
sudo dnf install java-11-openjdk-jmods.x86_64
  1. Install postgres server
sudo dnf install postgresql-server postgresql-contrib

# Enable postgres on boot
sudo systemctl enable postgresql

# Start postgresql server
systemctl start postgresql

# Modify the existing lines <postgres_install_dir>/data/pg_hba.conf to allow connections from localhost
# "local" is for Unix domain socket connections only

## Original
local   all             all                                     ident
# IPv4 local connections:
host    all             all             127.0.0.1/32            ident

## Modified
local   all             all                                     trust
# IPv4 local connections:
host    all             all             127.0.0.1/32            trust

  1. Create database and database user

  2. Seed the database

habit-tracker-backend's People

Stargazers

Roman avatar

Watchers

James Cloos avatar Barsh 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.