# Facebook (kind of)
This app is not intended to be a Facebook clone, instead, is about implementing
Ruby on Rails concepts to develop a social network application
(yes, another one). Right below there is a list of the features this project
has.
![application demo gif](./docs/demo.gif)
#### Important
The live version of the app is in the following
[url](https://facebug-srodrig.herokuapp.com/).
## Features
- **users** registration, authentication, edition
- **posts** creation, edition, and deletion
- **friendships** creation, rejection, canceling
- **likes** creation, deletion
- **comments** creation
## Setup
### Requirements
- `ruby` 2.6.5
- `rails` 5.1.7
- `postgres` 12.1
- `bundler` 2.0.2
### Steps
1. Clone the repository to any location you prefer.
```bash
git clone https://github.com/santiago-rodrig/facebook.git && cd facebook
```
2. Setup PostgreSQL. Read this [wiki page](https://github.com/santiago-rodrig/facebook/wiki/PostgreSQL-setup) to get information on how to do it.
3. Create the `.env` file that specifies the environment variables used by the application. Read this [wiki page](https://github.com/santiago-rodrig/facebook/wiki/Environment-variables) to get informed of the process.
4. Generate the databases with the Rails generators.
```bash
rails db:setup && rails db:migrate && ENV=test rails db:setup && \
ENV=test rails db:migrate
```
### Testing
There is a test suite available for you to run, in case that you think that
the app has some failing parts somewhere (hopefully not). Just run
`bundle exec rspec` to run the tests. If you decide to develop this app even
more you can use `bundle exec guard` while developing the new features to
run the tests in real time when you change things.
## Acknowledgements
This project is a task specified in
[The Odin Project](https://www.theodinproject.com/courses/ruby-on-rails/lessons/final-project),
and other things are specifications of the
[Microverse program](https://www.microverse.org/).
## Contact
If you want to reach out to me you can visit
[my Github profile](https://github.com/santiago-rodrig) or
[the LinkedIn one](https://www.linkedin.com/in/santiago-andr%C3%A9s-308a5b190?lipi=urn%3Ali%3Apage%3Ad_flagship3_profile_view_base_contact_details%3BtYchDkD4S7eoM%2BGocwG3SA%3D%3D). You also can send me an email to [santo1996.29@gmail.com](mailto:santo1996.29@gmail.com).
## License
This project is licensed under the [MIT](https://github.com/santiago-rodrig/facebook/blob/master/LICENSE.md) license.
没有合适的资源?快使用搜索试试~ 我知道了~
使用Rails5构建的社交网络。使用devise进行身份验.zip
共186个文件
rb:94个
erb:34个
keep:9个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 8 浏览量
2023-04-06
22:20:20
上传
评论
收藏 2.58MB ZIP 举报
温馨提示
使用Rails5构建的社交网络。使用devise进行身份验
资源推荐
资源详情
资源评论
收起资源包目录
使用Rails5构建的社交网络。使用devise进行身份验.zip (186个子文件)
bundle 129B
friendships.coffee 211B
comments.coffee 211B
likes.coffee 211B
posts.coffee 211B
users.coffee 211B
application.css 709B
show.html.erb 3KB
edit.html.erb 2KB
show.html.erb 2KB
_navigation.html.erb 2KB
new.html.erb 2KB
new.html.erb 1KB
edit.html.erb 1KB
_links.html.erb 1KB
_alerts.html.erb 1KB
edit.html.erb 856B
_request.html.erb 736B
index.html.erb 685B
_friend.html.erb 657B
_post.html.erb 621B
_user.html.erb 600B
new.html.erb 587B
_post.html.erb 573B
application.html.erb 532B
_form.html.erb 494B
new.html.erb 486B
new.html.erb 480B
index.html.erb 462B
_error_messages.html.erb 398B
reset_password_instructions.html.erb 393B
email_changed.html.erb 314B
_comment.html.erb 283B
unlock_instructions.html.erb 276B
mailer.html.erb 229B
confirmation_instructions.html.erb 198B
new.html.erb 198B
edit.html.erb 196B
password_change.html.erb 117B
friend_requests.html.erb 114B
mailer.text.erb 13B
Gemfile 3KB
demo.gif 2.53MB
.gitignore 590B
Guardfile 2KB
404.html 2KB
422.html 2KB
500.html 2KB
favicon.ico 0B
facebook ERD.jpeg 76KB
application.js 746B
cable.js 360B
manifest.js 101B
package.json 66B
.keep 0B
.keep 0B
.keep 0B
.keep 0B
.keep 0B
.keep 0B
.keep 0B
.keep 0B
.keep 0B
Gemfile.lock 8KB
README.md 2KB
LICENSE.md 1KB
apple-touch-icon.png 0B
apple-touch-icon-precomposed.png 0B
rails 264B
rake 213B
Rakefile 227B
devise.rb 14KB
user_spec.rb 10KB
index.html.erb_spec.rb 6KB
show.html.erb_spec.rb 5KB
friendships_controller_spec.rb 5KB
show.html.erb_spec.rb 5KB
likes_controller_spec.rb 5KB
posts_controller_spec.rb 4KB
friend_requests.html.erb_spec.rb 4KB
production.rb 4KB
schema.rb 3KB
index.html.erb_spec.rb 3KB
friendships_helper_spec.rb 2KB
post_spec.rb 2KB
user.rb 2KB
puma.rb 2KB
users_controller_spec.rb 2KB
development.rb 2KB
test.rb 2KB
users_helper_spec.rb 2KB
application_helper_spec.rb 2KB
rails_helper.rb 2KB
comments_controller_spec.rb 2KB
users_controller.rb 2KB
registrations_controller.rb 2KB
friendships_controller.rb 1KB
friendship_spec.rb 1KB
seeds.rb 1KB
posts_controller.rb 1KB
共 186 条
- 1
- 2
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功