I'm currently working on a GUI utilizing REACT (node.js backend) and I want to create a page that pulls repo file names from a specific Gitlab repo (my own repo). So I would press a button and up comes a sub-window showing the Repo data pulled. I intend to use this to grab the name of the file and store it for later use on another part of the GUI.
I am new to REACT and I'm still learning it. My question is how would I go about grabbing the information as far as coding goes? I imagine the Gitlab REACT API would be what I want to use for starters. I've seen videos where they create a page to search data from different repos such as Giblab users, but I could not find the same for searching for repo file structures.
Thanks for any help.
Related
I am an aspiring developer. I have cloned Emilio Quintanas Servitodo APP into my own repository. I downloaded the repo, and used gh-pages with npm to build and deploy the APP, but the links are not working.
When my homepage is jsitges.github.io/ I get the error "no shallow build allowed" but when I build to jsitges.github.io/servitodo the paths to the app are not configured correctly.
https://github.com/jsitges/servitodo
I may have the same problem as posted in this question, I will try later today, but to me that is the most obvious solution so far.
I am assuming I have a question regarding history, the solution to that:
git clone <git_url>
delete the .git repository from your folder. Which will delete all your history.
The you can do a
git init
which will create an entirely new git project for you.
This may not be the best way. But this will work . Hope it helps.
So last, is the question of wether this is a valid question at all, The initial challenge was to build an app. TO THIS AVAIL, i copied emilio Quintana's app. But did not include the API part.
NOW I have also cloned the API for his app, but how can I learn how to publish the react app along with it's API. These are the Features he implemented:
React Router to enable client side rendering and optimized performance.
Utilized JSON Web Tokens and localStorage to store encrypted user information client-side.
Developed a Rails API using a PostgreSQL database with endpoints for users, jobs and professionals.
Implemented user interface employing React and Redux with Material UI for styling.
Utilized Stripe Elements to enable credit card payments.
And the Tech Stack he used
React & Redux and Material UI.
What does this mean? tech Stack? I infere what that means, but where can i costumize his app so that I can basically copy its inner workings and have it served from gh-pages.
Thanks in advance.
Im currently working on my backend for my website and Ive found that I need an index html. As I've done my front end in react (on Vscode) do I just copy and paste the exact same index html code I've already done in react in spring boot?
On my index page there is a search bar where users will enter text and I will pass it through to my algorithm that I've created in spring boot on eclipse and then the result will be returned on a new page. I've searched how to do this but a lot of the examples are more to do with saving items entered into a database. Im assuming I will need a controller which I have made that will link to the index page? But I don't know what else comes after that This may seem trivial but I am a complete beginner. Thanks in advance!
The class named review.java is my algorithm. I read that I probably need an entity, repo and service but I am unsure what goes in them. Ive attached my package explorer. Sorry if this a very basic question.
package explorer
I currently have a GatsbyJS app that is using Netlify CMS (NCMS) for content management and Netlify via GitHub for hosting/deployment.
I would like to build a very simple order form system, but I would like to use JSON files and NCMS collections to represent the data because I will have very minimal data requirements and I would like the ability to have the data administered entirely through NCMS.
For example, I have a Products collection and an Orders collection. Products is using a JSON extension and contains JSON files that represent each product. Everything is looking good there. For Orders, I want to be able to create new entries from NCMS OR from an order form in my app.
Creating Orders entries in NCMS should be simple enough using the relation widget to incorporate a Products entry into each order. What I'm trying to figure out is how I can create JSON files in my filesystem (repo) upon form submission. I assume this is possible in some way with GitHub webhooks because NCMS is doing this when you create files in their system.
Can I, using some combination of Netlify's Forms API, Netlify Functions and/or GitHub webhooks, create a file in my GitHub repository when a user submits a Netlify Form in my app?
If this isn't possible, my follow up strategy would be to save Orders data in a MongoDB database. I do not have any experience yet with Mongo, but I know it's based around a "flat" data format using a JSON like syntax. Could I possibly save my order data in a Mongo collection upon submission via a Netlify Lambda function, then trigger a build via Netlify, and in my app pull in Mongo data at build time, and somehow create a file for each order object, perhaps via Gatsby's API?
My last resort would be to set up an admin area of my app where orders could be viewed, modified, and deleted. I'd prefer to avoid this because a) I do not have Netlify Pro services and thus do not have access to password protected site access (though I'm not sure how NCMS utilizes Identity and is able to avoid the premium plan?), and b) I would like all data administration to occur through the same platform (Netlify CMS).
You can definitely do this with Netlify Form, Function & Github API. I've done something similar for one of my gatsby sites, where form data is submitted directly to a Netlify function.
If you'd like to take advantage of Netlify Form's features like spam prevention & email notification, I think it'll look something like this:
Set up your Netlify Form
Set up a Netlify function that listens to the submission-created event. In the body of the request, you'll find a payload object that contains the form data, as well as info about your site (in case you have a bunch of them).
Netlify has a package that really ease up the development process.
Trigger a call to Github API to either create a file for that submission or update an existing file that contains all submissions.
At this point, you can set up netlifyCMS to read the content of that folder / file & allow admin to review / modify the submissions.
Hope it helps!
So, I have a GatsbyJS website done. And I need some clarification on how to proceed.
So what I want to do:
Create a blog with GatsbyJS using Contentful as my CMS. Each time I add something on Contentful, my website will query data from Contentful and update in website.
So where I'm stuck:
I'm unsure of how to approach the last part. I ran gatsby build and it came out with production html files which I have successfully deployed on my server and it works with the current entries on Contentful.
But, this is different from what I wanted because, I have new entries on Contentful that I wish for it to be updated on my website.
Is there a way for me to update my website each time I create a new entry on Contentful. Or must I do the build each time I create a new entry.
Thanks!
The solution to this is to set up web hooks. You can define these in Contentful and when some one publishes content requests will be made to a server you define.
I'm not sure what Digital Ocean offers but when you have a CI server/service (Travis, Circle) in place, it will re-build your site with fresh data after receiving a hook. :)
I'm pretty new to react and building out a little prototype using Firebase as a backend. One of the primary functionalities involves a user writing a post in an editor, which is saved to firebase. On submit in the editor, I am trying to create a new standalone page for the post with the firebase uid as the ending part of the new unique URL.
The problem I'm having is figuring out a way to create the new page on submit. I haven't been able to find any documentation for a similar problem like this specific to react or firebase, and was just wondering on a high-level what a good approach to executing this might be? Thanks
The newly launched Firebase Hosting + Cloud Functions integration can help here. The first bullet point in the documentation looks like it describes your use case exactly.
You also mentioned React. There is a handy sample project showing how to implement an isomorphic React app with Firebase.