Giter Site home page Giter Site logo

ruoyiw / my-medical-secretary Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 156 KB

University final-year project imported from Bitbucket

Home Page: https://bitbucket.cis.unimelb.edu.au:8445/projects/SWEN90013/repos/swen90013-2018-me/browse?at=refs%2Fheads%2Fdevelop

Java 98.86% Shell 1.14%

my-medical-secretary's Introduction

Medical Secretary RESTful API

Overview

Getting Started

Prerequisites:
  • Java 1.8
  • Maven 3

First download the source to your local machine using Git:

$ git clone https://bitbucket.cis.unimelb.edu.au:8445/scm/swen90013/swen90013-2018-me.git

Configuration

Note: You should exclude your database profiles from VCS as they may contains sensitive information

First you need to configure DBCP profiles.

Go to the properties directory and copy the sample profile dbcp_sample.properties:

$ cd swen90013-2018-me/src/main/resources/
$ cp dbcp_sample.properties dbcp_local.properties

Open and edit the new profile:

$ nano dbcp_local.properties

It will looks like:

# Connection Info
# [endpoint]: replace with database url / ip
# [port]: replace with database port
# [dbname]: replace with the name of desired database
url=jdbc:mysql://[endpoint]:[port]/[dbname]?serverTimezone=UTC

# Credentials
username=[username]
password=[password]

Change these properties to reflect your own database info.

You can create 2 database profiles, dbcp_local.properties and dbcp.properties. One for local dev / testing, the other for remote deploy. Edit config.properties to switch between them:

$ nano config.properties

Change this property or (un)comment the whole line to switch between the two profile.

USE_DEV_DATABASE_PROFILE = true

Build with Maven

Build and run integration tests as follows:

$ mvn clean install

This will compile the project and pack all the packages. The built artifact medsec.war will be generated in target directory.

Deploy to Tomcat

Go to your tomcat home directory. Remove previous deployed application in webapps:

$ rm webapps/medsec.war
$ rm -rf webapps/medsec

Clear tomcat runtime temporary files:

$ rm -rf work/Catalina

Then copy the built artifact medsec.war to webapps directory.

Start your tomcat:

$ bin/catalina.sh run

Access the API at:

http://localhost:8080/medsec

Working with IntelliJ IDEA

Credit

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.