Skip to content

Microblog application in Elixir/Phoenix/Javascript

Notifications You must be signed in to change notification settings

NarakuF/microblog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note: This microblog app (also deploy script) is followed the instruction by Nat Tuck in CS4550 Web Development.

Microblog

Behaviors

Signup/ Login

  • A new user can sign up with email address.
  • A registered user can login with email address and logout.

Can be improved by adding username and password in the future.

Post messages

  • After logging in, the user can click "New Post" on the top to post new message (title and description required).
  • "New Post" will not show up if the user does not log in.

Can be improved by adding feature of mention and hashtag in the future.

Follow users

  • Only after logging in, the user can follow other users (Follow twice will unfollow).

Like messages

  • Only after logging in, the user can like other users' messages.
  • implement:
    1. Add likes table to postgreSQL database
    2. Modify schemas (likes, users, messages)
    3. Add helper method in blog.ex and change controller
    4. Add handlebars to deps with npm
    5. Modify message show page
    6. Modify js in assets/js/app.js

TODO

  • Unfollow
  • Like does not work after new message posted

Deploy

  1. git clone https://github.com/NarakuF/microblog.git
  2. Manually set $DIR in ./deploy.sh
  3. run script ./deploy.sh

Reference

To start your Phoenix server:

  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.create && mix ecto.migrate
  • Install Node.js dependencies with cd assets && npm install
  • Start Phoenix endpoint with mix phx.server

Now you can visit localhost:4000 from your browser.

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

Learn more

About

Microblog application in Elixir/Phoenix/Javascript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published