/mns237-server

Primary LanguageJavaMIT LicenseMIT

mns237-serve

.

Service APIs. Documentation. Support. Contribute. Contributors. Repositories. Licensing

table-of-contents

  • For REST api. Click here to see the Demo Live
  • For client. Click here to seee the Demo Live
  • Client project here

Coding

Precondition

  1. Maven
  2. Postgres in Window or Virtual ToolBox
  3. JetBrains IntelliJ IDEA (Community Edition) 2020.2 oder higher
  4. OpenJDK 14.0.2 14.0.2 (JavaSE 14)

Development process for server

  1. Fork/Clone the code
  2. Prepare your machine to use PostgresSQL **** NOT NEED ANY MORE already on cloud***
  3. Run batch file deploy-local.cmd -- should be successfull
  4. Go to browser and dial http://localhost:8080/api/
  5. Browser should display json information
  6. Let's code now!!
  7. Run batch file deploy-local.cmd-- should be successfull
  8. Commit with issue number
  9. Push all

Preparation of machine to use PostgresSql

  1. [Download PostgresSql at] (https://www.postgresql.org/download/)

Howtos

Maven

How to list dependeny from cmd

  1. mvn -B -DskipTests clean dependency:list install
  2. DskipTests to skip test components

Heroku

How to Manual deploy

  1. Go Heroku and open desired project
  2. Go to Deploy tab and scroll down
  3. Sample real project using java maven

PostgresSql

  1. Prepare your machine to use PostgresSql ( Oracle VirtualBox or PostgresSql on Window )
  2. [Download PostgresSql] (https://www.postgresql.org/download/) and follow instruction or

How to use PostgresSql from Oracle VirtualBox

  1. Install Oracle VirtualBox if you got old windons version
  2. Start docker Quickstart Terminal
  3. Run command docker ps --all to list docker container in docker
  4. Run command docker run --name nameC -e POSTGRES_PASSWORD=mysecretpassword -d -p 5432:5432 postgres back to top