Skip to content

Commit

Permalink
simplify readme
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardAndress committed Oct 31, 2021
1 parent 24f435c commit 8f0c0a8
Showing 1 changed file with 32 additions and 38 deletions.
70 changes: 32 additions & 38 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Acebook
# Acebook

This is a java/springboot project to be developed on. There's a video tour of the application [here](https://youtu.be/L1Zi9WOJ6xg) but you should read through these docs first.

Expand All @@ -13,87 +13,81 @@ The application uses:

Below, you'll find specific learning objectives for each tool.

### Existing features
## QuickStart Instructions

- Fork and clone this repository to your machine
- Open the codebase in an IDE like InteliJ or VSCode
- Create a new Postgres database called `acebook_springboot_development`
- Install Maven `brew install maven`
- Build the app and start the server, using the Maven command `mvn spring-boot:run`
> The database migrations will run automatically at this point
- Visit `http://localhost:8080/users/new` to sign up

## Running the tests

- Make sure chromedriver is installed
- You might also need geckodriver
- Start the server in a terminal session `mvn spring-boot:run`
- Start a new terminal session, navigate to the Acebook directory and then do `mvn test` to run both feature tests and unit tests

## Existing features

This app already has a few basic features
* A user can sign up at `/users/new`
* A signed up user can sign in at `/login`
* A signed in user can create posts at `/posts`
* A signed in user can sign out at `/logout`

### Design
## Design

This app uses a structure that is similar to Bookmark Manager. The biggest difference is that, here, the repository
pattern is used. The repository pattern separates the business logic of models from the responsibility of
connecting to the database and making queries. Take a look in the `src/main/java/repository` and you'll find
`PostRepository` which generates and executes queries to Create, Read, Update and Delete (CRUD) posts.

### Learning Plan

This project will ultimately be really rewarding if you follow these three points:
1. **Work as a team.** It's OK to spend some time learning solo but make sure it's time-boxed, carefully scoped
and share everything that you learn, even the dead ends, with your team in a show and tell session.
2. As a team, **plan your learning**. There's a ton of new things in this project, purposefully so. That's ok. As always, **take it slowly & move in small steps**: ask a coach if you want more ideas how to plan your team learning.
3. As an individual, **plan your learning**. What do you personally want to achieve? How will you structure your time? What do you need to learn about, for example, Thymeleaf, just in order to get started?

#### Initial learning goals
## Initial learning goals

You don't need an in-depth knowledge of each dependency listed above. Once you can tick off these learning goals,
you're ready to dive in. It's assumed that you can already TDD the Takeaway Challenge, or something of similar
complexity, in Java. It's OK if you need to pause here with Acebook and learn how to do that now :)

##### Maven
### Maven
- [ ] I can explain what pom.xml is for
- [ ] I can start the app using Maven

##### Thymeleaf
### Thymeleaf
- [ ] I can explain the code in `posts/index.html`
- [ ] I can plan a new template that could be used for editing a post

##### Flyway
### Flyway
- [ ] I can explain what a migration is
- [ ] I can explain when migrations are run
- [ ] I can explain the code in the two migration files in this directory `/db/migration/`
- [ ] I can explain the naming convention for flyway migration files

##### Selenium
### Selenium
- [ ] I can explain the code in `SignUpTest.java`
- [ ] I can write a new feature test for unsuccessful sign up

##### Faker
### Faker
- [ ] I can explain what Faker does
- [ ] I can explain why it's useful

##### JUnit4
### JUnit4
- [ ] I can explain the code in `PostTest.java`
- [ ] I could add more test cases to `PostTest.java`

##### The repository pattern
### The repository pattern
- [ ] I can explain the repository pattern

##### SpringBoot
### SpringBoot
- [ ] I can diagram how this SpringBoot application handles `GET "/posts"`

##### Spring Security
### Spring Security
- [ ] I can explain how this app is secured

#### Resources

* [Some great videos on Spring Security](https://www.youtube.com/watch?v=sm-8qfMWEV8&list=PLqq-6Pq4lTTYTEooakHchTGglSvkZAjnE). Don't watch them all, but do watch the first couple if you want an overview.

### QuickStart Instructions
## Resources

- Fork and clone this repository to your machine
- Open the codebase in an IDE like InteliJ or VSCode
- Create a new Postgres database called `acebook_springboot_development`
- Install Maven `brew install maven`
- Build the app and start the server, using the Maven command `mvn spring-boot:run`
> The database migrations will run automatically at this point
- Visit `http://localhost:8080/users/new` to sign up

### Running the tests
* [Some great videos on Spring Security](https://www.youtube.com/watch?v=sm-8qfMWEV8&list=PLqq-6Pq4lTTYTEooakHchTGglSvkZAjnE). Don't watch them all, but do watch the first couple if you want an overview.

- Make sure chromedriver is installed
- You might also need geckodriver
- Start the server in a terminal session `mvn spring-boot:run`
- Start a new terminal session, navigate to the Acebook directory and then do `mvn test` to run both feature tests and unit tests

0 comments on commit 8f0c0a8

Please sign in to comment.