Skip to content

SamButton12/acebook-allowTeamToReceiveName

 
 

Repository files navigation

Bettah

290e2f323e2e487ca498201d4d13e588

Contributors

Description

This is a clone of Facebook built using the Express.js framework for Node.js, with a MongoDB database and Handlebars templates for the front end. It was a group project as part of Makers Academy and we named our website Bettah. Like Meta, but Bettah!

It uses:

Card wall

Screenshot 2022-06-17 at 10 51 03

MVP, design and planning

  • A user can make a post on acebook.
  • A user can view a post on acebook.
  • A user can sign up, and then log into acebook.

Screenshot 2022-06-17 at 09 59 40

Screenshot 2022-06-17 at 10 02 49

Screenshot 2022-06-17 at 10 05 30

Team Approach

Work hours

  • Start time 10am
  • Lunch 1pm - 2pm
  • End day 5:30pm

Pairing

  • Breaks decided amongst pairs.

  • Two pairing slots.

  • Morning 10.15am - 1pm.

  • Afternoon 2pm - 5:30pm.

Daily stand ups and retros.

  • Stand ups. 10am-10:15am.

  • Retro. 5:30pm.

  • Additional Stand ups before or after lunch for planning and estimation of tickets. When needed.

Screenshot 2022-06-17 at 10 39 48

Demo Photos

Home page / Login Page

Screenshot 2022-06-17 at 13 45 52

Sign up Page (Modal)

Screenshot 2022-06-17 at 13 46 03

Timeline

Screenshot 2022-06-17 at 13 52 32

Future Improvements

  • Users can friend each other.
  • Use cloud server for database
  • Deploy website on Heroku

Quickstart

Install Node.js

  1. Install Node Version Manager (NVM)
    brew install nvm
    
    Then follow the instructions to update your ~/.bash_profile.
  2. Open a new terminal
  3. Install the latest version of Node.js, currently 18.1.0.
    nvm install 18
    

How to run locally

  1. Fork this repository
  2. Clone your fork to your local machine
  3. Install Node.js dependencies
    npm install
    
  4. Install MongoDB
    brew tap mongodb/brew
    brew install mongodb-community@5.0
    
  5. Start MongoDB
    brew services start mongodb-community@5.0
    

Start

  1. Start the server
    npm start
    
  2. Browse to http://localhost:3000

Start test server

The server must be running locally with test configuration for the integration tests to pass.

npm run start:test

This starts the server on port 3030 and uses the acebook_test MongoDB database, so that integration tests do not interact with the development server.

Test

  • Run all tests
    npm test
    
  • Run a check
    npm run lint              # linter only
    npm run test:unit         # unit tests only
    npm run test:integration  # integration tests only

MongoDB Connection Errors?

Some people occasionally experience MongoDB connection errors when running the tests or trying to use the application. Here are some tips which might help resolve such issues.

  • Check that MongoDB is installed using mongo --version
  • Check that it's running using brew services list

About

Node.js template for the Acebook project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 59.9%
  • CSS 27.3%
  • Handlebars 12.8%