A repository for the server side code of the Waft project.
If you are running the app, make sure that the version of the server code you are using matches the version of the app code. They are tagged with the same version number. If you are using version 0.1 of the app, use version 0.1 of the server by running git checkout 0.1
.
To set up the server locally just follow these steps.
The server runs on Node. Follow the instructions here (https://nodejs.org/en/download/) to install it.
git clone https://github.com/Oscmage/DAT255_server.git
cd DAT255_server
npm install
This will install all Node dependencies for the server.
The server doesn't use HTTPS at the moment, so you can skip this step.
sh/generate_ssl_key.sh
You will be prompted to input some information, but you don't have to enter anything (just press enter).
npm start
This will start the server at port 8080. The server will automatically reload when any code changes.
npm test
- Server specifics can be found within server.markdown
- More about how the server is decomposed, database, testing and how it all works together can be found in "developerDocumentation.markdown"
- Information about the API can be found in "api.markdown"