Coder Social home page Coder Social logo

fsdfinal's Introduction

FSD Finall

There are two applicaitons taskmanager is SPA Developed using anaular-cli https://cli.angular.io/ taskmanagerproject is a spring boot appciaiton deveoped using https://start.spring.io/

Pre-requistes for using application Git Repository

https://github.com/mprvn/FSDFinal.git

For spa Install node 10.16.3 version used for development Angulalr/cli : 7.3.9 version used for development node-sass Visual Studio Code IDE for development

For Backend install Java version 1.8 Mvn version 3 Docker version 19.0.32 Mysql latest version git latest version

Frontend:

For using the project cone the

git clone https://github.com/mprvn/FSDFinal.git appclication run > cd taskmanager > npm install > npm install node-sass > ng serve

in Browser use httt://localhost:4200

Backend:

Check if maven is installed and path is setup propery https://www.mkyong.com/maven/how-to-install-maven-in-windows/

cd taskmanageproject use 'mvn clean install' to download all required dependencies use 'mvn clean install sonar:sonar' for generaton of reports and test code coverage use 'mvn spring-boot:run' to run the backend applicaitons.

you can access the api with below link, I have configured swagger to give detais about the api.

http://localhost:9090/swagger-ui.html

Using Docker:

We need to run mysql first as backend is dependent on the mysql server

docker run --name=docker-mysql -p 3306:3306 --env="MYSQL_ROOT_PASSWORD=root" --env="MYSQL_PASSWORD=pass@word1" --env="MYSQL_DATABASE=cogdb" mysql For Frontend and backend run the docker build commnad to creat the image docker build -t /taskmanager-IO

After creating image you need to run docker run command

docker run --name taskp -p 9090:9090 /task-manager --link docker-mysql:mysql --link is deprecated in future and so we might need to access the complete IP of the service you can get ther details by running 'docker inspect docker-mysql' (image name) We can run frontend normaly on the local machine or via docker wiht 'ng serve'

Note:

Due to some Version probems with anguar-cli when front end fresh setup we might get some exceptions/warnings so please execute below commands

ng set --global warnings.packageDeprecation=false

If docker mysq does not connect properly Check the images docker ps docker exec -it /bin/bash mysql -u root -p

You wil be able to login into mysql command line execute select host, user from mysql.user;

docker stop docker-mysql docker start docker-mysql Check these commands a

fsdfinal's People

Contributors

mprvn avatar

Watchers

 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.