Coder Social home page Coder Social logo

annalaise / chitter-challenge Goto Github PK

View Code? Open in Web Editor NEW

This project forked from makersacademy/chitter-challenge

0.0 2.0 0.0 3.43 MB

Build a Twitter Clone!

Home Page: https://annalaise-chitter.herokuapp.com/

Ruby 53.93% HTML 40.45% CSS 3.78% JavaScript 1.84%

chitter-challenge's Introduction

Chitter Challenge

What is Chitter?

For the fifth weekend challenge at Maker's Academy, we have been asked to build a full-stack application that simulates the core functionality of Twitter. A publicly visibly feed will display all 'peeps' from users, who in turn can sign up, post 'peeps', log in and log out of the app.

Technologies:

  • Ruby Sinatra
  • HTML5, CSS & Bootstrap
  • DataMapper & Postgres
  • BCrypt - password encryption
  • Heroku - production
  • Rspec - Unit Testing
  • Capybara - Feature Testing

How to use Chitter:

Visit the production app on Heroku here: https://annalaise-chitter.herokuapp.com/

For Testing:

Step 1 - Clone the Repo Open Terminal Navigate to a directory where you would like this repo to be stored and paste the following:

git clone [email protected]:annalaise/chitter-challenge.git

Step 2 - Install Gems

gem install bundler
bundle
bundle update

Step 3 - Install PSQL (if you do not have this installed already)

brew install postgresql

After homebrew has downloaded the software it will show you some installation instructions, follow them! Make sure you run these commands after installing:

ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist

Then create a database so that you can log in without having to specify which one: psql postgres

Which opens up the postgres terminal - it looks something like postgres=#

Then type in the following:

create database "your_user_name_here";

CREATE DATABASE

postgres=# \q

The last command quits out of the postgres terminal.

From now on you will be able to log in to postgresql without having to specify the database you want to log into.

Step 4 - Create Databases

psql
CREATE DATABASE chitter_development;
CREATE DATABASE chitter_test;

Check both databases have been setup by entering \l while still in psql - this will list the databases on your local host. Enter \q to exit psql once done.

Step 5 - Run Tests

Run rspec for checking tests pass

Run rackup, navigate to your chosen client browser and visit localhost:9292 (or the PORT number specified in rackup logs) to see the app working locally.

User Interface:

Chitter is responsive across all breakpoints:

Mobile

Image of Chitter Mobile View

Tablet

Image of Chitter Tablet View

Desktop

Image of Chitter Desktop View

chitter-challenge's People

Contributors

annalaise avatar tansaku avatar neoeno avatar ptolemybarnes avatar anitacanita avatar silvabox avatar chrisjbatts avatar sjmog avatar spike01 avatar sdorunga avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.