Skip to content
This repository has been archived by the owner on May 16, 2022. It is now read-only.

justinemar/bp

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

bida-social

Gamers hub social network

Setup

You need to use at least node 6 to run this project. This project requires secrets for the following services :

  • Cloudinary
  • mLab
  • JWT

Cloudinary

Head over to Cloudinary and create an account.

Go to your dashboard and get the following details Cloudinary dashboard showing secrets

Go to the project folder and create a .env file and paste your api secrets in with the following keys

CLOUD_NAME=dhwgznjct
CLOUD_API_KEY=614517856694992
CLOUD_API_SECRET=<Omitted/>

You are all set!

mLab

Head over to mLab and create an account.

Create a new deployment and select Sandbox

Select the newly created deployment, you will be prompt to create a new database user so do that.

Copy your MongoDB URI mongodb://<dbuser>:<dbpassword>@ds121999.mlab.com:21999/deploymentName

Go to the project folder and inside the .env create new key named DB_URL and make your MongoDB URI as the value.

DB_URL=mongodb://fakeuser:fakepassword@ds121999.mlab.com:21999/deploymentName
CLOUD_NAME=dhwgznjct
CLOUD_API_KEY=614517856694992
CLOUD_API_SECRET=<Omitted/>

You are all set!

JWT

Enter a new key inside the .env file with the following name and make the value anything you want.

KEY1=BOWCOWCARABAOWOW

Our value (secret) along with header and payload will be use to calculate our signature using default HMACSHA256 algorithm. Introduction to JWT

You are all set!

Running

  • Run npm install
  • Run npm run nodemon
  • Run npm run dev

Contributing

All forms of contribution is welcome.

Always work on bp-staging branch.

Notice

This project is for learning purposes only and not use for commercially. Images uploaded to the website is not intented for copyright infringement.