Git Product home page Git Product logo

sample-todoapp's Introduction

todoapp

Backend Development (Spring Boot 2.1.6.RELEASE)

Database Configuration

1) Create a mysql database named todoapp which is running in 3306 port by using following command:
    1.1) CREATE DATABASE todoapp;
2) Create a database user name todoapp identified by todoapp@1234 using following mysql command
    2.1) CREATE USER 'todoapp'@'localhost' IDENTIFIED BY 'todoapp@1234';
    2.2) GRANT ALL PRIVILEGES ON todoapp.* TO 'todoapp'@'localhost';
    2.3) FLUSH PRIVILEGES;

Building for Development

To start your application in the dev profile, simply run:

cd backend
./gradlew -Pdev clean bootRun

Server will run in 8080 port.

Building for production

Packaging as jar

To build the final jar and optimize the todoapp application for production, run:

cd backend
./gradlew -Pprod clean bootJar

To ensure everything worked, run:

java -jar build/libs/*.jar

Packaging as war

To package your application as a war in order to deploy it to an application server, run:

./gradlew -Pprod -Pwar clean bootWar

Testing

To launch your application's tests, run:

./gradlew test integrationTest

To see the test results open following files in your browser

1) <project-path>/backend/build/reports/tests/test/index.html
2) <project-path>backend/build/reports/tests/integrationTest/index.html

Frontend Development (Angular 8)

Building for Development

To start your application in the dev environment mode, simply run:

cd frontend
npm install & ng serve

Go to http://localhost:4200/login.

Provide "admin/admin" as default user name and password to login.

You can register your own user by clicking register link.

Building for production

ng build --prod --build-optimizer --aot --base-href=/

You will find optimized build in dist directory.

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.