Code Monkey home page Code Monkey logo

warframestats's Introduction

WarframeStats

Get & display statistics on Warframe's rewards.

Installation

npm install

You also need a localhost MongoDB database. You don't need to expose the database.

Launch

Setting up environment variables

NODE_ENV={development or production} : some functionalities aren't in production for security purpose.

DOCKER={true or false} : in Docker the BDD is not 'localhost' but with a network name (go see isDocker variable in app.js).

HTTP={true or false}

Typical run in dev mode

Linux command line : HTTP=true NODE_ENV=development DOCKER=false node bin/www

See also run_prod.ps1 for windows or run_prod.sh for linux.

Adding users to the DB

Can only be made in development mode.

The WarframeStats.postman_collection.json file can be imported into the Postman app for testing purpose.

There is one entry to add a user : url={{base_url}}/users/, method=POST where base_url is a collection variable.

Back-end description

Express.js : API is in the routes and api directories.

Mongoose : ORM for a MongoDB database. See the api/models and api/business directories.

Passport : user management and access control.

Front-end description

PUG templates + Bootstrap + bootstrap-table + homemade javascript.

Tests

Use the Postman collection.

Docker

Dockerfile is provided for the application.

Dockerfile is typical for MongoDB

FROM mongo
VOLUME /data/db
WORKDIR /data
EXPOSE 27017
CMD ["mongod"]"

The docker-compose.yml (not in this project)

  • create a docker subnetwork (driver: bridge),
  • create the DB container within this subnetwork
  • create the app container within this subnetwork
    • expose the ports you want to expose
    • link the application container to the DB container.

warframestats's People

Contributors

solostaran avatar

Stargazers

Tok' avatar

Watchers

 avatar Kostas Georgiou avatar

warframestats's Issues

Test StickyHeaders

What will it do with StickyHeaders and a new mean of sorting Sortie's rewards ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.