Is it advisable to set my repository to private when developing a website for a business?

I'm creating a website for a freelance project (for a relative) that is designed to showcase a new business's showroom and unique inventory. I don't anticipate any sensitive information being included on the site. There will be an admin page for administrators to log in, add items, and feature numerous photos.

My initial query is: Would it be acceptable to utilize a public GitHub repository? (I am aiming to enhance my portfolio). Or would it be more appropriate to use a private Bitbucket repository?

My second question is: Is it unreasonable to construct this application/website from scratch using the MEAN stack? I understand that setting everything up may require some time and I have previous experience with building MEAN stack apps. Is the MEAN stack a feasible solution for this specific project?

Many thanks!

Answer №1

Regarding your initial inquiry about utilizing a public github repository: If you intend to include any confidential information such as private keys or passwords in your repository, it is imperative that you take precautions to safeguard them from being exposed in a public setting. Additionally, it is advisable to have a conversation with the individual involved to obtain their consent before incorporating the content into your portfolio.

Answer №2

Working extensively with the MEAN stack, I have found it to be incredibly versatile for a wide range of projects. While I always build my MEAN projects from scratch, I acknowledge that this approach may take longer but aligns with my personal preferences. In the case of this specific project, I believe that MEAN is an excellent choice, especially if you already have experience working with it. It's important to conduct thorough research when handling image storage in MongoDB, as large amounts of data can impact performance. However, there are effective methods, such as utilizing GridFS, for proper image storage.

If you intend to showcase your work through a portfolio, consider making the repository public. However, exercise caution if your code contains sensitive information like token secrets or passwords; instead, leverage environment variables for secure storage. For instance:

Suppose you have:

auth_token = 12345;

You can set an environment variable on your computer and then reference it in your code like this:

auth_token = process.env.yourVariable //This is just an illustrative example

Alternatively, before publishing your repository, replace sensitive values with placeholders like:

auth_token = "your auth token"

When deciding whether to publish a repository, consider:

  • Is the website intended for someone else who may prefer to keep the code private?
  • Is the website based on a unique idea that could be at risk of being copied?

For those seeking privacy, Git offers private repositories, and students can access them for free.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Extract data from a CSV table stored in a variable using node.js

Currently, I am working on a node application that can potentially result in a CSV formatted table being stored in a variable. I am interested in converting this CSV data into a JSON format. I have explored various modules, but it appears that most of th ...

Identifying repeated numbers within an array using objects

What is the most effective way to replicate array integers according to their key values retrieved from an API? Input: {1208: "1", 1209: "2"} Output: [1208, 1209, 1209] I attempted using Object.keys but it only fetched the parent key ...

Troubleshooting: Issue with Nested jQuery UI Accordion Implementation

I am having issues with the menu collapsing incorrectly. While the top level functions properly, the sub menus do not collapse as expected. I am unsure about the correct approach to fix this problem. Can anyone provide guidance? jquery $(function() { ...

using outlines for FontAwesome icons in React Native

I am struggling to use the fontAwesome + icon in the middle of a circle as one item. I have tried placing it inside a circle icon, but it doesn't seem to work properly. import IconFA from 'react-native-vector-icons/FontAwesome'; < ...

Unable to fetch information from the local host using an AJAX request and PHP script

I'm having trouble retrieving the <p> elements echoed in my PHP script. I need a solution that allows me to style these <p> nodes using a JavaScript function without refreshing the page. Can someone help me with this issue? Here is my PHP ...

When querying a document, the Mongoose array is missing

When querying for documents with an array, I'm encountering an issue where the returned documents do not include the array. Below is my code: Query Code (async () => { const data = await Lesson.find({signed: {$exists: true}}); cons ...

Exploring the possibility of incorporating an alphaMap in Three.js

I've been experimenting with creating a cloud texture using two jpeg files - one for transparency and the other for color/visible texture. While the three.js documentation has been somewhat helpful, I'm struggling with the actual implementation. ...

Using a ternary operator to render a span tag in ReactJS

I need to display a number in a span tag with larger font size in Spanish. Here is my React.js code using a ternary operator: <div> {togo !== 0 ? (<div className="text-center"><span className="display-4">{togo}</span>{togo > ...

Failure to specify the variable type can lead to the creation of automatic global variables

Recently, I stumbled upon this http://www.w3schools.com/js/js_scope.asp page which introduced me to the concept of "Automatic Global variables". Here is an example of how it works: // You can use carName variable here function myFunction() { carName ...

Need to monitor AJAX requests in Chrome on an iOS device?

I have implemented a method to intercept AJAX requests on my website by modifying the XMLHttpRequest.prototype open and send methods. This approach has been successful in all browsers I tested, except for Chrome on iOS (iPhone) where it seems to continuous ...

Incorporate a jQuery userscript on Firefox that includes a link to a form

Attempting to incorporate a search link into an online form using a userscript with jQuery, specifically for Firefox. I typically work in Chrome, so I'm encountering some challenges with compatibility in Firefox. However, I need this to be functional ...

Why does my express POST request result in an empty req.body in Node.js?

After confirming that my data is being passed correctly and the db connection is successful, I am facing an issue with my ajax request. Even though the success callback returns the id, my data seems to not be passing through properly. When attempting to a ...

trouble encountered while parsing JSON information using JavaScript

[ [ { "Id": 1234, "PersonId": 1, "Message": "hiii", "Image": "5_201309091104109.jpg", "Likes": 7, "Status": 1, "OtherId": 3, "Friends": 0 } ], [ { "Id": 201309091100159, "PersonI ...

How to append a JSON object to an existing .json file

UPDATE: Despite successfully executing the PHP code, my JSON file remains unchanged. I must apologize in advance for covering old ground, but I have spent countless hours exploring different solutions with no success. Perhaps sharing my challenge could as ...

The average calculation malfunctioning after adjusting the input data

I am a beginner with AngularJS and facing an issue. I have a list of cities for which I need to calculate the average temperature. However, after editing the temperature values in the city list, the function that computes the average temperature is giving ...

How is it possible to receive a TRUE value when the API returns an error message indicating that the requested photo does not exist?

I am currently in the process of learning Angular and Typescript, but I am facing some challenges. I am working on an application that involves displaying a list of photos, as well as allowing users to create, edit, and delete existing photos. However, whe ...

Issue encountered while sending a jQuery error to the server?

Utilizing jQuery ajax POST throughout my application, here's an example of an ajax post. The content type is determined by the data variable. Content Type could be either application/x-www-form-urlencoded; charset=UTF-8 or application/json; charset=ut ...

Finding the parent directory path within gulp.dest(): A step-by-step guide

I've recently started using Gulp and I'm facing an issue when trying to output my files to their parent directory. This is how my directories are structured: app/page_a/less/a.less app/page_a/css My desired outcome is: app/page_a/less/a.less ...

Directus | The Revision is not being updated when a collection is created in Flows

I am currently working with the latest version 9 of Directus. I have set up a Data Model called "Article" with fields for title and Random_order. https://i.sstatic.net/3JcZ4.png https://i.sstatic.net/bRpBF.png I have created a Directus flow that upda ...