Giter VIP home page Giter VIP logo

fhdw-bat's Introduction

FHDW - Boss Arrival Time

This is the official backend source code for the Boss Arrival Time project of the lecture PIT at the FHDW university. This project represents our take on the Weasley Clock from Harry Potter. The Weasly Clock shows the whole Weasly family and there current location. We took this functionality and tried to apply it to our professors/dean.

screenshot

The idea was, that we have an app for Android and iOS which sends the current location to a backend server, which could then represent the location on a maps inside a browser. To accomplish that, we build a NodeJS backend which provides an API to create a new user and lets the client update his/her current location. This location would then be send to the browser using WebSockets to provide a real time representation of the current location.

Get started

To run this server you need to have NodeJS installed and a MongoDB instance running. Also you may need to change some configurations inside the config.js file.

Finally, run npm start to start the server on the configured port.

Development

Start the server for development.

npm run-script start:dev

Lint your files using eslint.

npm test

Deployment

The repository includes a Dockerfile for easy deployment.

# Build the Docker image
docker build -t boss-arrival-time:latest .

# Run the Docker image
docker run -d -p 80:3000 --restart always --name bat-backend boss-arrival-time:latest

Using Docker Compose you can also run the server without the need to install MongoDB manually.

docker-compose up -d

You may want to build/run the Docker image with the environment variables (MONGODB_URL, ADMIN_TOKEN, DOMAIN)

Companion Apps

Contribution

You want to contribute? That's awesome! Go ahead an feel free to open a Pull Request with your bug fixes or new features. Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

License

MIT ❤️

fhdw-bat's People

Contributors

bastilimbach avatar t-reim avatar treim-de avatar

Watchers

 avatar  avatar

fhdw-bat's Issues

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.