Skip to content

PplaysMine/server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SELab Android App Server

Content

What it does

This is a SSL server to handle user authentication & store data in a mysql database.

How to start

Simply run node server.js
The server needs root privileges, so if you are on linux, start the server with sudo node server.js

Configuration

Creating a new configuration

Create a new file named config.js and copy the contents of the file exampleConfig.js to your newly created file.

The config values explained

  • The values for config.ssl.keyLoc and config.ssl.certLoc should be absolute paths to the SSL key and the SSL certificate respectively.
  • The values for config.db.host, config.db.user and config.db.pass should contain the login data for the mysql database
  • config.db.dbName contains the name of a database
  • config.server.port contains the port the server is listening on. This is the port you want to send your data to
  • config.server.swaggerPort contains the port for the swagger documentation. This port has to be different from config.server.port!
  • config.server.tokenSecret contains any string of characters to validate your jwt token
  • config.server.url contains the base url of your service, which will be displayed in the swagger docs
  • config.docs.user and config.docs.pass contain the credentials for the password protected swagger documentation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published