Note: This microblog app (also deploy script) is followed the instruction by Nat Tuck in CS4550 Web Development.
- Github repo
- Deployed app (Inactive)
- 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.
- 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.
- Only after logging in, the user can follow other users (Follow twice will unfollow).
- Only after logging in, the user can like other users' messages.
- implement:
- Add likes table to postgreSQL database
- Modify schemas (likes, users, messages)
- Add helper method in blog.ex and change controller
- Add handlebars to deps with npm
- Modify message show page
- Modify js in
assets/js/app.js
- Unfollow
- Like does not work after new message posted
git clone https://github.com/NarakuF/microblog.git
- Manually set
$DIR
in./deploy.sh
- run script
./deploy.sh
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.
- Official website: http://www.phoenixframework.org/
- Guides: http://phoenixframework.org/docs/overview
- Docs: https://hexdocs.pm/phoenix
- Mailing list: http://groups.google.com/group/phoenix-talk
- Source: https://github.com/phoenixframework/phoenix