The Battlefield API

Chris Day: db6b93f83d Added bbcode support 2 years ago
db c878fba41f added defalut mep 2 years ago
lib db6b93f83d Added bbcode support 2 years ago
routes 581999df3e added better round functionality 2 years ago
.gitignore c0370a622d added admin users 3 years ago adfa8b81da Updated session name and updsated install instructions 3 years ago
api.js ca94d15884 added the ability to chat to your team/alliance 2 years ago
apidoc.json 9182545709 Removed SSL URL 3 years ago
makeDocumentation 2838b6d3f5 Added core API files 3 years ago
package.json 817afefff1 Improved authentication method and fixed XSS issues 3 years ago


The BAttlefield API

How to install the API and database

  1. Pull the repository to your local machine with git pull
  2. Run npm install
  3. Edit lib/config.js with your database connection details
  4. Go into the directory db/
  5. Run npm install
  6. Run node create
  7. Slight bug with this the script does not automaticaly exit so after a few seconds hit Ctrl+C
  8. Go back to the home directoy ../
  9. Run node api for single time use or nodemon api for development use or pm2 start api if you are in a production enviroment