Giter Site home page Giter Site logo

phoenix_token_auth_react's Introduction

PhoenixTokenAuthReact

This is an example app using Phoenix, phoenix_token_auth and React.

Branch master uses phoenix_token_auth's latest hex release and branch development might use a more current version of phoenix_token_auth's master branch.

You need to have a (free) mailgun account to be able to send welcome emails. You'll need to know your mailgun domain, and HTTP API key.

Running

  • Clone the repository and change into it's directory
  • Install dependencies:
mix deps.get && npm install
  • Create and migrate the database (You might also need to change the DB username/password in config/dev.exs before you try to run the DB creation and migration tasks.)
mix do ecto.create, ecto.migrate
  • Add some example data
mix seed_db
  • Configure a real mail user, in the same domain as the mailgun domain you configured, in config/config.exs.
    config :phoenix_token_auth,
      ...
      email_sender: "[email protected]",
      ...
  • Start the server
MAILGUN_DOMAIN=... MAILGUN_KEY=... mix phoenix.server

Testing

In order to run mix test, which makes use of Hound for testing, you need a local webdriver server to be running. You can find simple instructions at https://github.com/HashNuke/hound/wiki/Starting-a-webdriver-server

On OS X with Firefox and Homebrew installed you may install the Selenium web driver and follow the instructions for running it:

brew install selenium-server-standalone

You may also need to change the DB username/password in config/test.exs before you try to run the tests.

Credits

A lot of inspiration and code were taken from https://github.com/FancyPixel/small-frontend.

phoenix_token_auth_react's People

Contributors

manukall avatar grempe avatar

Watchers

Alvin Lai avatar

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.