Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

Back end Testing guidelines

Sabien edited this page Dec 23, 2019 · 2 revisions

Back-end Testing guidelines

In order to test the back-end of the oneleif website, you first need to have Vapor installed!

Vapor install

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.

Clone the project

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.