First you will need to instal following things on your system
- Ruby: 2.7.3
- Rails: 6.0.4
- Postgresql
Postgresql installation guide
if you use Windows 10 follow this tutorial
- Clone this Repo
git@github.com:ettore-bernardi/rubyBlogProject.git - Go into the directory
cd rubyBlogProject - Do the bundle istalation
bundle - Do the yarn instalation
yarn - Crete the Database
rake db:create db:migrate db:seed - Run the server
rails server
- Go to
http://localhost:3000/there you will see the main posts page, this is the principal readers page - You can make login using the email
author@blog.comand password123321or create a new user - after logging in you will see the authors page, here you can create new posts and manage the posts made by the user who is logged. note that if you have signed in as a new user you will not have any posts on this page.
Primeiro você deverá ter isto instalado no seu sistema:
- Ruby: 2.7.3
- Rails: 6.0.4
- PostgreSQL
Guia de instalação do PostgreSQL
Se você usa o Windows 10 siga este tutorial
- Clone este repositorio
git@github.com:ettore-bernardi/rubyBlogProject.git - Vá para o diretório
cd rubyBlogProject - Faça a instalação do bundle
bundle - Faça a instalação do yarn
yarn - Cria o banco de dados
rake db:create db:migrate db:seed - Inicie o servidor
rails server
- Vá para
http://localhost:3000/Aqui você verá a pagina principal de posts, essa é a página inicial dos leitores - Faça login usando o email
author@blog.come a senha123321ou crie seu próprio usuario - Depois de fazer o login você verá a pagina do author, aqui você pode criar os próprios posts ou editar os já existentes que foram criados pelo usuário logado, note que se você entrou com um novo usuário não terá nenhum post nesta página