The Battlefield API

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

README.md

tbAPI

The BAttlefield API

How to install the API and database

  1. Pull the repository to your local machine with git pull http://git.cdcoding.com/The-Battlefield/tbWeb.git
  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