Skip to content

Oscmage/DAT255_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Waft

A repository for the server side code of the Waft project.

Synchronizing versions of the server and the app

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.

Get started

To set up the server locally just follow these steps.

Step 0 - install prerequisites

The server runs on Node. Follow the instructions here (https://nodejs.org/en/download/) to install it.

Step 1 - clone the repo to your computer

git clone https://github.com/Oscmage/DAT255_server.git
cd DAT255_server

Step 2 - install dependencies

npm install

This will install all Node dependencies for the server.

(Step 3 - generate HTTPS certificate)

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).

Step 4 - run the server

npm start

This will start the server at port 8080. The server will automatically reload when any code changes.

Step 5 - run tests

npm test

Documentation

All documentation can be found within the folder "/docs".

  • 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"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published