Code Monkey home page Code Monkey logo

food-delivery-web-app-backend-springboot's Introduction

Food-Delivery-Web-App-BackEnd-SpringBoot

Build from the Source

Download the source code. You can either download it as a zip file and extract it or simply type the command in the terminal or bash or cmd,

git clone https://github.com/food-boot/Food-Delivery-Web-App-BackEnd-SpringBoot.git

change your directory into the project folder. And run the command,

mvn install

  • For windows try this link to install maven.
  • for ubuntu you can use this link to install maven.

Next run the command,

mvn spring-boot:run

and the server will start automatically. Try to visit this url to see the api documentation.

NOTE

If you failed to start the server try to configure your database details with the project. To update database details find the file located in src\main\resources and find the file application.properties. And update following details.

spring.datasource.username=<your database username> spring.datasource.password=<your database user's password>

And then you will be good to go. Make sure to start the spring app when you are done editing the above mention file.

If you wan't to run the war version of the spring app, locate to the folder /target which will be in your directory when you run the mvn install command, and in there you will see you .war file.

To run the war file, use the below code.

java -jar food-delivery-web-app-0.0.1-SNAPSHOT.war

Docker Installation

The docker file containing the docker image building is in the 1.0.0 branch. If you wish to use the docker file for the building, please follow the following steps.

  1. Make sure you have already installed Docker in your machine. If it is not, please refere this link.
  2. Switch to the 1.0.0 branch git checkout 1.0.0
  3. Use a terminal inside the project where the Dockerfile is located. Execute the following command to build the image. Replace <your tag> by the tag of your own. docker build --tag <your tag> .
  4. Run the image as a container. docker run -d -p8080:8080 <yout tag>
  5. Use docker exec command to access the container by your own.

PR's are welcome. Please submit any issue that you will face when developing your spring-boot application.

food-delivery-web-app-backend-springboot's People

Stargazers

 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.