Welcome to the Elastic Community Train Manager API project!
The video below shows how the setup convert json to sql and build and serve application.
And the next video show how the api works
Here's how to get started:
To run this application project, you need to have the following installed in your device
- Docker
- Java 8 or above
Follow the steps below to run the application locally
-
First, unzip the Elastic-Team-Java-PostgreSQL-Challenge-Train Manager-NelsonFrank.zip
-
Change directory and activate virtual enviroment
cd ./Elastic-Team-Java-PostgreSQL-Challenge-Train Manager-NelsonFrank/code/code/code
- Then build and start your application
docker compose up --build
Note: If you have older docker version, then use
docker-compose up --build
Follow the following steps to deploy the django app
-
Choose a server provider, such as AWS, Google Cloud, or DigitalOcean. For example, you could use AWS EC2 to set up a virtual server.
-
Set up the server by installing the necessary software, such as Docker, Java and a web server like Apache or Nginx. In our case we use nginx as web server
# Install java sudo apt install default-jre nginx
To install Docker in you server, Follow the instruction here.
-
Clone the project on server
git clone git@github.com:nelsonfrank/Elastic-Community-Train-Manager-Api-Application
-
Serve your application in production.
cd Elastic-Community-Train-Manager-Api-Application/code/code # Serve your application docker compose up --build -d
-
Accessing the train manager api application In your browser open the server followed by port number. In our case it 8080 visit
http://<server-ip>:8080/api/trains
in your browser/postman client to see list of all trains. -
Hurray, You successfully deploy your application.
- Java 8
- Spring Boot 2
- PostgreSQL
- Maven
- Docker
- Nelson Frank - nelsonfrank
This project is licensed under the MIT License - see the MIT License for details