Giter VIP home page Giter VIP logo

microblog-be's Introduction

README

Microblogging app that deploys to Netlify. This is the repository for the Rails backend.

Stack

  • Rails backend API
  • React frontend

Description

This app allows you to sign in as a user and create microblogging posts. You can edit or delete each post you've created.

Then, you can choose from 3 different layouts for your blog. Once you're satisfied you can click "Deploy" to deploy your blog as a static site to Netlify. If you make any changes, you can always redeploy.

Rails

The Rails API consists of the following endpoints:

  • GET /posts --> Retrieve all posts

  • POST /posts --> Create a new post

  • PUT /posts/:id --> Modify a post

  • DELETE /posts/:id --> Delete a post

  • POST /deploys --> Deploy to Netlify

Blogs are deployed to Netlify by generating an index.html page from your posts and chosen layout, and zipping the file up with a stylesheet to be sent to Netlify.

React

The React frontend communicates with the Rails backend through the API. Tokens are used for user authentication.

Test user

Test user in seeds.rb -- [email protected] / netlify123

Running the app locally

By default the frontend makes request to the localhost on port 3001. So, you can run the app as so:

rails s -p 3001

TO DO

  • Add ability to create a new user (as of now you can only log in with existing users)
  • Restrict parameters with permitted_params
  • Add errors returned from backend to the UI

microblog-be's People

Watchers

James Cloos avatar Andrea 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.