Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 1.14 KB

README.md

File metadata and controls

47 lines (36 loc) · 1.14 KB

beatstore

A marketplace to sell your beats.

Development

Make sure to add dev.js to /server/config/ with your MongoDB URI, AWS Tokens, Stripe Tokens, and JWT secret:

module.exports = {
    mongoURI: '',
    jwtSecret: '',
    stripeSecret: '',
    endpointSecret: '',
    s3SecretAccessKey: '',
    s3AccessKeyId: '',
    s3PublicBucket: '',
    s3PrivateBucket: ''
}

Also, create a file called StripeClient.js in /client/src/components/utils/ with the following contents:

module.exports = {
    stripePublicKey: 'YOUR PUBLIC KEY FROM STRIPE HERE'
}
Property Description
mongoURI MongoDB URI
jwtSecret JWT Secret
stripeSecret Stripe Secret Key
endpointSecret Stripe Webhook Endpoint Secret
s3SecretAccessKey AWS Secret Key (S3 permissions)
s3AccessKeyId AWS Access Key ID (S3 permissions)
s3PublicBucket S3 bucket name for public files
s3PrivateBucket S3 bucket name for private (pay for download) files

Production

Add the same properties as above to your environment variables.

Acknowledgments