Story: As an un-registered guest on the website, I can go to a web page and see a list of available apartments.
Apartments have: two street designations, a city, postal code, state, and country, in a addition to a building manager's contact info, which includes: name, phone number, and hours to contact
Story: As an un-registered guest on the website, I can click on an apartment to view its details
Story: As an un-registered guest on the website, I can see a header element at the top of each page containing navigation to the other pages
Remember that your rails app needs to be an API and should use a postgres database. You can include all of these requirements in your rails new command
Hint: Only use one table in your database.
Hint: Divide the story into smaller tasks and commit to git when each task is complete.
Story: As a un-registered guest, I can go to registration page with a form and register as a new user. Once I have registered, I should be redirected to the index view of all apartments
Story: As a logged in user, I can go to a new apartment page with a form and create a new apartment
Story: As a logged in user, I can edit the information for any apartment I have created, but I cannot edit the information for apartments that belong to someone else
Story: As a logged in user, I should be able to log out
Story: As a registered user who has not logged in, I can go to a login page
If you don't remember how to do something -- that's ok!
This is the part of the learning process where you get to cement your knowledge of the vocabulary and concepts by trying to create an app. Look back in the curriculum to remember the processes or commands until you get comfortable with them. Write difficult processes out on sticky notes, a document on your desktop, whatever helps you remember!
Your process should look something like this:
A story is completed when:
masterbranch in Github.
We are going to set up a rails backend with Devise for authentication. See if you can correctly follow the documentation below to set up your app.
Once you are finished setting up the Rails side, create a react app in a different repository to interact with it.