DEV Community

Akanksha Pandey
Akanksha Pandey

Posted on

1 2

DevHub

GitHub Actions x DEV Hackathon

My Workflow

DevHub A Social network for developers, It is a MERN stack based social network app that includes authentication, profiles and forum posts.

Submission Category:

DIY Deployments, Phone Friendly and Wacky Wildcards

Yaml File or Link to Code

Alt Text

GitHub logo Akanksha-P97 / DevHub

Social network for developers. It is a MERN stack based social network app that includes authentication, profiles and forum posts.

DevHub

Social network for developers. It is a MERN stack based social network app that includes authentication, profiles and forum posts.

Quick Start πŸš€

Add a default.json file in config folder with the following

{
  "mongoURI": "<your_mongoDB_Atlas_uri_with_credentials>",
  "jwtSecret": "secret",
  "githubToken": "<yoursecrectaccesstoken>"
}

Install server dependencies

npm install

Install client dependencies

cd client
npm install

Run both Express & React from root

npm run dev

Build for production

cd client
npm run build

Test production before deploy

After running a build in the client πŸ‘†, cd into the root of the project.
And run...

NODE_ENV=production node server.js

Check in browser on http://localhost:5000/





Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

πŸ‘‹ Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay