Giter Club home page Giter Club logo

span's Introduction

Span

For the busy or forgetful people who want to keep track of their belongings. This project is centered around the idea that our belongings have a lifespan and aims at notifying when they're reaching EOL

Current Implementation

  • Powered by Phoenix
  • Containerized using Docker
  • Data exposed using Graphql (absinthe)

Installation

First Time

Clone the Repo

git clone https://github.com/benjaminshafii/Span

Create a docker network

docker network create span

Launch project

sh ./init.sh

Using it

docker-compose up

Using it

Go to http://localhost:4000/graphiql

Use the following to get a token

mutation Login {
  login(email: "[email protected]", password:"password")
}

Copy your token (without the double quotes)

In the query params on top change the URL section to:

http://localhost:4000/api

then in the Headers section click on Standard -> Oauth2 Bearer Token and place your token after Bearer. It should look like this

Name: Authoriztion

Value: Bearer xxxxx

where xxxxx is your token

Useful Commands

Running your project

The following command is similar to using the Rails console or the Django shell

docker-compose run web iex -S mix

License

MIT

span's People

Contributors

ashgansh avatar

Watchers

 avatar

span's Issues

Create a Login Screen for the Front End

Form with email and password to fill to receive a token.
And store it in cookies or local storage so it can be reused for the communication with the backend

Add a Lifespan field on the Asset Model

Right now I'm doing some unnecessary computation on the resolvers at retrieval time to expose the EOL field.
A better way is to do that on creation time.
An even better option might be to have some DB triggers that populates the EOL column automatically

This code is not pushed yet

Create a login page for the android app

Form with email and password to fill to receive a token.
And store it in cookies or local storage so it can be reused for the communication with the backend

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.