Giter Club home page Giter Club logo

forum_backend_rest_api_converting_to_node_js's Introduction

Forum_Backend_Converting_To_NODE_JS

The forum that we created for client with Laravel is converted to Node js according to all routes for Node Js demonstration.

Features Updated

  • Account Customization
  • Changing Password With Authentication Via Mail
  • Hashed System
  • Post Like Dislike & Comment Like Dislike
  • Client Images Are Converted Before Saving With Intervention Image.
  • All Api Are Currently Working Fine With Our Frontend Project of React Js.
  • Viewing all user and their posts personally.

Run Locally

Remember Inside .env file

  • PORT = 8000

  • Imgpath = http://localhost:8000

  • Host = localhost

  • User = root

  • Pass =

  • DB = forum

  • And Some Js File Are Using Transporter Which You Will Find At Rout Functions ... There Change auth -> user : -> pass :

  • const transporter = nodemailer.createTransport({ host: 'smtp.gmail.com', port: 587, secure: false, // Set to true if you're using port 465 with SSL/TLS auth: { user: 'Your smtp [email protected]', pass: 'the smtp mail pass', }, });

  • Located in SendMail.js file

  • change this datas according to your server configuration.

  • Forum.sql and Forum(1).sql are added for database importing ... Both files are same it's just one is quick compressed .... Enjoy !!!

Optimizations

  • Added more responsive view for different displays.
  • Made carousel effect optimized with respect to the device dislay change.

All Routes


// First Regs Route router.post( '/regs', upload.single('images'), // Use multer middleware for handling the 'images' file registrationHandle );

//Login Rout router.post('/login', loginHandler )

//Strtup Login Check router.get('/amilogged/:token', AmILogged )

//PostTypes router.get('/postTypes', PostTypes )

//HomePost router.get('/homepost', HomePost )

//Logout router.get('/logout/:usersl', Authentication, Logout )

//Profile router.get('/profile/:usersl', Authentication, Profile)

//Mypost in Profile router.get('/mypost/:usersl', Authentication, MyPost)

//Change Profile Submit button router.post('/changeprofilesub/:usersl', Authentication, upload.single('images'), ChangeProfileSub)

//Change Pass in Profile router.post('/changepasssub/:usersl', Authentication, ChangePass )

//DELETE ACCOUNT router.get('/delete', DeleteID )

//Post router.post('/post/:usersl', Authentication, Post )

//getting Post of Same Topics router.get('/topic/:codename', TopicPost )

//Getting Post of Same Search router.get('/searchpost/:usersl/:searchdata', Authentication, SearchPost )

//Solving Page router.get('/solve/:usersl/:probsl', Authentication, Solve)

//Adding view router.get('/ientered/:usersl/:postno', Authentication, IEntered)

//Post Edit router.get('/mypostedit/:usersl/:postno', Authentication, MyPostEdit )

//Post Edit btn click router.post('/myposteditsub/:usersl/:postno', Authentication, PostEditSub )

//Delete Own post router.get('/mypostdelete/:usersl/:postno', Authentication, MyPostDelete )

//Submit Comment router.post('/comment/:usersl/:postno', Authentication, Comment )

//My commented posts router.get('/mycommentedPost/:usersl', Authentication, MyCommentedPost )

//Post Like router.get('/postlike/:usersl/:postno', Authentication, PostLike )

//Post DisLike router.get('/postdislike/:usersl/:postno', Authentication, PostDislike )

//Comment Like router.get('/comlike/:usersl/:postno', Authentication, CommentLike ) // postno means comment no

//Comment Like router.get('/comdislike/:usersl/:postno', Authentication, CommentDislike ) // postno means comment no

//Own com delete router.get('/mypostcomdel/:usersl/:comntno', Authentication, MyPostComDel )

//own coms delete bug fix router.get('/delmycom/:usersl/:comno', Authentication, DelMyCom )

//Own post all coms delete authority router.get('/admindeletecoms/:usersl/:postno/:comno', Authentication, AdminDelComs )

//report router.get('/report/:usersl/:postno', Authentication, Report )

//show notif router.get('/notification/:usersl', Authentication, Notification )

//del notification router.get('/delnotif/:usersl/:highestsl', Authentication, DelNotification )

//see other users router.get('/seeother/:usersl/:mail', Authentication, SeeOther )

forum_backend_rest_api_converting_to_node_js's People

Contributors

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