Check out the live version: codenetwork.netlify.app
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)
- Contributions are greatly appreciated.
- Check out Contributing.md file for more details
This project is licensed under an MIT license. Check out LICENSE file for more info.
- Make sure you have node.js installed, run this command to check if its installed:
node --version
-
Fork & Clone the repository and run
yarn install
ornpm install
in root directory -
Create a MongoDB atlas account and a new database and database user
-
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
-
Add a
JWT_SECRET
env variable in your.env.local
file e.gJWT_SECRET=thisismysecret
-
Install Netlify CLI globally:
npm install -g netlify-cli
-
Run
netlify dev
orntl dev
in command line to start server on port8888
-
Navigate to
localhost:8888
to view web app. :)
Give the project a ⭐ if you like it.
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