-
Notifications
You must be signed in to change notification settings - Fork 2
Back end Testing guidelines
In order to test the back-end of the oneleif website, you first need to have Vapor installed!
To use Vapor, you need to either have a Linux/Unix system, or a Mac. If you have neither, you can dual boot a Windows machine and add Linux as an operating system. Ask a oneleif member how to do this if you are unfamiliar.
In order to run the project, you need to have a copy of it on your machine. Clone the repository to your machine; If you are unfamiliar with cloning, do a search for "git clone".
Now, switch to the correct branch for testing, typically the most up to date code will be on origin/develop.
Now, in the terminal, inside of the project folder, you will need to build the project and run it. Run the following two commands:
vapor build
vapor run
Now, the project will be running, go to a browser (Chrome, Firefox, etc) and go to the following address: http://localhost:8080
The website you see at that address will be the website running on your machine locally. To test from here on out, add print statements and look in the log where you are running the website.