Giter Site home page Giter Site logo

abhi5658 / blogging_application Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 260 KB

A react based minimal blogging application with features - list / read / create blog(s)

Home Page: https://blog-site-live.netlify.app/

JavaScript 84.86% HTML 6.16% CSS 8.99%

blogging_application's Introduction

blogging_application

This repo houses backend and frontend for blogging application

Backend APIs

Blog service

Run In Postman

  1. GET /blogs - Retrieves recently created blogs
  2. POST /blog - Creates a new blog
  3. GET /blogs/:id - Retrieves blog by id

Server Notes

  • The server is running with nodemon which will automatically restart for you when you modify and save a file.

  • The database used is SQLite, which will store data in a file local to your repository called database.sqlite3. The ORM Sequelize is on top of it.

  • The BACKEND server is running on port 3001.

Understanding project structure

  • src/routes contains all the routes or path of the application
  • src/controllers contains all the controllers attached to paths are places in
  • src/services contains independent functions to perform different actions on DB or get data from DB
  • tests/unit contains unit tests for all services
  • tests/integration cantains all the controller level or API integration tests

Testing the backend ๐ŸŽฎ

  • Go to backend directory
cd backend/
  • Run tests โœ…
npm run test
  • Setup and start the backend application โ–ถ๏ธ
npm run seed
npm run start
  • Open Postman
    • Import postman_collection.json from this repo to test out the post analytics service
    • Import blogging.postman_collection.json from this repo to test out the mock stock trading service
    • Run all the request to test out all applications

Frontend

Frontend routes

  1. / - Home page og blogger website
  2. /blogs - Alternate to home page
  3. /blogs/:id - Open full blog
  4. /create - Create a new blog

Understanding frontend project structure

  • src/components contains all the UI components
  • src/services contains independent functions to perform different backend API calls

Testing the frontend ๐ŸŽฎ

  • Go to backend directory
cd frontend/
  • Start the frontend application โ–ถ๏ธ
npm run start

Functionalities

  • List all the blogs on homepage
  • Click on specific blog to view full blog
  • "Create a new blog" button to create a new blog

blogging_application's People

Contributors

abhi5658 avatar

Watchers

 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.