Skip to content

ifyoudieincanada/signup_service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SignupService

The idea behind SignupService is it will be able to generate a series of unique signup codes that can be used to create accounts on this website. This application doesn't handle user creation, it only allows validation of users via a preshared key.

Tables:

  • Keys The Keys table is the only table here. It's columns are string:key and bool:claimed.

Endpoints:

  • /verify The URL to verify that a given key is unused.

    The idea is a (registered) frontend app will call Signup.verify(key) followed by User.create(user_info) in the event that the verification was a success. We do not want to expose our UserService to the outside world, meaning these should only be accessible on-network.

  • /generate The URL to generate more unique keys. This should only be accessible to Users verified with admin permissions.

To start your Phoenix app:

  • Run setup.sh to create the required postgresql users
  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.create && mix ecto.migrate
  • Start Phoenix endpoint with mix phoenix.server

Now you can visit localhost:4000 from your browser.

Ready to run in production? Please check our deployment guides.

Learn more

About

Network/SignupService for the Social Network API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published