GithubHelp home page GithubHelp logo

jackytsheng / campus-backend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rmr101/campus-backend

0.0 1.0 0.0 342 KB

๐Ÿงณ Third project from Jiangren. Backend

Home Page: https://rmr101.github.io/campus-frontend

Java 99.93% Dockerfile 0.07%

campus-backend's Introduction

๐Ÿ† Awarded 2nd Place in JR ACADEMY Full-stack Bootcamp 10th Commercial Project Competition.

Website link

JR Academy Project 3 - Campus system 1.0

This is the backend project three from JR Academy. Objective of this project is to deliver a learning management system for an educational institution

What's new?

Added AWS based email function Users will receive email upon registration and change password

Content

About

This is project three from JR Academy We are team RMR101. Objective of the project is to deliver a learning management system for an educational institution.

Backend Feature Summary

  • Secure log-in with encrypted password and JWT authentication
  • AWS document upload and download for handing assignments

Tech stack:

Framework:

  • Spring Boot
  • Maven

Testing:

  • Junit
  • Mockito

Security:

  • JSON Web Token

Clouds:

  • AWS S3 & Presigned URL
  • AWS SDK
  • AWS Simple Email Service

CI/CD:

  • Java CI with Maven
  • Docker/ Docker Hub

Development:

  • Agile (Scrumn)
  • Github flow
  • Swagger UI

Database Structure

Run this program locally

Required programs

  • JAVA version 14 download
  • Docker download
  • IntelliJ IDEA (Recommended) or preferred editor

Spring Boot Configuration

  • Git Clone or download master code to your local drive
  • Unzip and open downloaded file in IntelliJ IDEA or your preferred editor
  • Start the main application in
    src/main/java/com.rmr101.campus/CampusApplication.java

Database Configuration(connect to Docker Hub)

  • pull pre-packed mysql image from command line (Docker login required):

    docker pull nkanyang/mysql:admin

  • Start docker image:

    docker run -itd --name mysql-campus -p 3306:3306 -e MYSQL_CAMPUS_PASSWORD=123456 nkanyang/mysql:campus-admin

  • login container

    docker exec -it mysql-test bash

  • login mysql

    mysql -u root -p

    input password:

    123456

    use campus

    select * from user;

    it should display a campus_id as "admin", now we can log in as admin with password: admin

Swagger UI

  • Step1: Start application

  • Step2: Access URL http://localhost:8080/swagger-ui.html in your browser

Future Improvement

Feature

  • generate a password reset email to users upon reset password request
  • allow multiple teachers to teach one course
  • pagination in search results
  • add JWT function in SWAGGER UI for easier feature development

Tech

  • add a long expiry JWT to keep users' login status
  • add load balancer
  • move from http to https

campus-backend's People

Contributors

nkanyang avatar jackytsheng avatar hd9990 avatar

Watchers

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