Deploying to your own laptop
If you want to deploy RAP4 to your laptop, this chapter tells you how.
This example has worked on my Macbook. If you have a different computer, you may either change the commands below to the commands of your own computer or set up a virtual Linux machine on your laptop.
Prerequisites
You need docker. Follow the instructions onhttps://docs.docker.com/.
You need git. Follow the instructions on https://github.com/git-guides/install-git
.
You need to use a command-line, you need permission to install software on your laptop and you need to be connected to the Internet.
Start in your command-line interface (CLI, terminal on a macbook) and go to (or make) a working directory from which you want to keep Git repositories.
Obtaining the files we need
Import the required files from Github (note: you may need to log in into Github):
Expect roughly this response:
Now go to the directory from which to install RAP:
You need to create a proxy network to let RAP communicate with your browser (no problem if it already exists; docker will tell you with an appropriate message)
When docker has made the network, it tells you something like this:
Now spin up RAP4 (note: in older versions of docker use docker-compose
instead of docker compose
. The difference is just a hyphen):
The first time you spin up RAP4, docker will spontaneously download the images it needs. That generates substantial output. At the end docker will show the containers that have been started:
Now, you need to "climb into" the rap4 container to execute one command manually:
You now get a prompt like root@bc774265c8ef:/usr/local/project#
that indicates that you are inside the rap4 container. Once inside, you need to give the following chmod
command to enable RAP to generate prototypes.
Finally, type exit to leave the rap4-container and return to the CLI of your laptop.
Now you are done. Just check whether everything works:
Type localhost
in the URL-field of your browser, to see if RAP4 has started. You should see this:
Note that RAP runs on the insecure http://
instead of https://
. This is not a problem if you keep your laptop safe from outsiders' trespassing. If you deploy to a server, you need a secure setup.
You will find that the database is accessible on http://phpmyadmin.localhost
The demonstration application, Enrollment, is accessible on http://enroll.localhost
Last updated