Skip to content

Blake-K-Yeboah/code-network

Repository files navigation

Code Network

Netlify Status MIT License

Screenshot Of App


😀 Demo

Check out the live version: codenetwork.netlify.app


💻 Tech Stack


JavaScript React Tailwind CSS Redux Netlify MongoDB


🎙 About The Project

This project is an open-source social network for developers built with serverless archietecture. It has many features from creating posts to playing tech trivia. Full list of current features:

  • Authentication with email/password
  • Posts with CRUD functionality
  • Commenting on posts
  • Liking and disliking posts
  • Dark theme toggle
  • Play tech trivia (a fun trivia game)

👨‍💻 Contributing

  • Contributions are greatly appreciated.
  • Check out Contributing.md file for more details

🛡️ License

This project is licensed under an MIT license. Check out LICENSE file for more info.


🛠 Installation

  1. Make sure you have node.js installed, run this command to check if its installed:

node --version

  1. Fork & Clone the repository and run yarn install or npm install in root directory

  2. Create a MongoDB atlas account and a new database and database user

  3. Copy your MongoDB URI and replace the URI in src/lambda/helpers/createClient.js

const client = new MongoClient( 
    `mongodb+srv://adminUser:${MONGODB_PASSWORD}@main.kyvd3.mongodb.net/development?retryWrites=true&w=majority`,
    { useNewUrlParser: true, useUnifiedTopology: true }
);

Store your db user's password in an environment variable in a .env.local file

  1. Add a JWT_SECRET env variable in your .env.local file e.g JWT_SECRET=thisismysecret

  2. Install Netlify CLI globally:

npm install -g netlify-cli

  1. Run netlify dev or ntl dev in command line to start server on port 8888

  2. Navigate to localhost:8888 to view web app. :)


😍 Show Your Support

Give the project a ⭐ if you like it.


🧠 Future Features

Here is a list of features that may be added in the future:

  • Attaching images to posts
  • Custom profile pictures
  • Live messaging with firebase
  • More information on user profiles

Releases

No releases published

Packages

No packages published