Giter VIP home page Giter VIP logo

birgir-cs389's Introduction

StockFolio - CS389 Project

This project was done in Java using Spring Boot. This web application features dependency injection, SLF4J logging framework, persistent MariaDB database, and JUnit unit testing.

This application was made for the CS389 class at Carroll College.

How to run this application

Step-by-step instructions for running this applicatin on your machine.

Clone the application

Assuming that you have git installed on your machine, clone the project to a local directory of your choice:

$ git clone https://github.com/biggigauti/cs389-project.git

Set up MariaDB database

In your terminal, use Homebrew to install the following package.

$ brew install mariadb

Once installed, or if you already have MariaDB installed, you can continue. If you want to log in to the database, do the following:

$ mariadb -u admin -p portfolio

When prompted for the password, the default password for this project is "admin01".

MariaDB structure

There are two tables in our database, app_user and stock.

To list the users, execute this SQL statement:

MariaDB [portfolio]> select * from app_user;

To list the user's stock records, execute this SQL statement:

MariaDB [portfolio]> select * from stock;

Run the application

Navigate to the directory where you saved this application within your terminal and execute the following:

$ ./gradlew bootRun

Once executed, open your browser and go to localhost:8080.

Using the application

When the webpage has loaded, you can log in by entering a username on the login page. If you have not signed up already, your username will be created when trying to log in initially.

Once logged in, you can insert stock positions as you wish and they will instantly be persisted to the database.

birgir-cs389's People

Contributors

biggigauti 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.