GithubHelp home page GithubHelp logo

bekturmsv / web-blog Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 0.0 9.21 MB

Weblog, a project whose idea was to create a platform for communication, with minimal functionality(CRUD). On this platform you can not write an article being unregistered. Also, only the creator of the article can delete/modify it.

Home Page: https://web-blog-by-beka.vercel.app

JavaScript 89.27% HTML 0.44% SCSS 9.06% CSS 1.23%
nodejs reactjs express-js mongodb scss redux-toolkit cors jwt mongoose multer-storage

web-blog's Introduction

Web Blog

About ๐Ÿ““

The main idea was to create your own communication platform. The end result was a platform with minimal functionality, but the idea of writing, deleting and editing posts/articles was achieved๐ŸŽฏ. The whole project was written by me (Back-end & Front-end). I used MongoDB as a database. Back-end development used Node.js & Express.js. And in Front-end development I used React.js & Redux/Toolkit.

Note:

The project has not yet been adapted for mobile versions

How it works โš™๏ธ

Back-end ๐Ÿ—„๏ธ

In the server folder, the index.js file runs a local server on port 5000. The same file prescribes routers for the type of requests, and depending on the request will trigger a certain function prescribed in the file PostController.js for posts/articles and UserController.js for users. The Models folder contains models of posts and users. The validations folder contains all validations for post creation, registration, and editing of posts. In the folder prloads are stored all the images that were uploaded to the server. ๐Ÿ˜Ž๐Ÿ‘Œ๐Ÿ”ฅ

Front-end ๐Ÿ–ฅ๏ธ

All client part is in the client folder, all files are in the folder src. The main files are App.js, axios.js, redux and pages. In the App.js folder all the routers are prescribed, and depending on the router the component I specified will be rendered. In axios.js I wrote a function so that api server is always embedded, you can read a bit about it here (https://axios-http.com/docs/instance). In the folder redux prescribed methods to change the state in the project. The pages folder contains all the pages that are present in the project. ๐Ÿ’ฏ๐Ÿ”ฅ


How to start locally

Note:

It is possible to run the project locally, but it will not work correctly because there is a mongodb uri in the project, and I can not cover this๐Ÿฅบ. So you can use this as a template to your projects, in places where api for front and mongodb uri are inserted.

How to start Front-end side :

  1. You must enter the client folder
  cd client/
  1. Next, you should install all the dependencies
  npm install
  1. And at the end, start the server
  npm start

How to start Back-end side :

  1. You must enter the server folder
  cd server/
  1. Next, you should install all the dependencies
  npm install
  1. And at the end, start the server
  npm run dev

Technologies used

  • React.js
  • Redux Toolkit
  • Node.js
  • Express.js
  • JWT
  • MongoDB / Mongoose
  • Multer storage
  • Mui
  • SCSS

web-blog's People

Contributors

bekturmsv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.