Git Product home page Git Product logo

portfolio's Introduction

portfolio

Before you get going

Make sure you have installed Vagrant and Virtual Box

If you have the dependencies for this project, pop open a terminal (ctrl-alt-t for all you nasty neck-beards) and get ready to copy-pasta some commands.

Download the project:

git clone https://github.com/gu-app-club/portfolio.git
cd portfolio

Using Vagrant, build the development environment (this will not work if you dont have Vagrant and Virtual Box installed).

If you are using Windows, run ALL Vagrant commands as administrator

vagrant up

Some fancy text will start scrolling down matrix style. If you are in a public area with an audience, this is a great opportunity to full-screen your terminal and rollplay as 4chan, the internet's greatest hacker.

Awesome? No errors? Perfect! Just...

vagrant ssh

Vagrant gives you access to a virtual machine. The last command just let you ssh into it.

In the Vagrant environment move into the project folder. This is a shared directory with the GitHub repository.

cd gu-port

Running the Backend and Frontend

To run both at once, you can use the start script. In your vagrant environment, run:

start

Backend

Once in a Vagrant environment move into the backend directory.

cd gu-port/backend/

Now start the REST API service.

./build.sh

If the project passes the unit tests the REST API service will start.

To access the API go to localhost:8080.

Frontend

Once in a Vagrant environment move into the frontend directory.

cd gu-port/frontend/

Now start the webservice.

yarn run dev

To access the frontend go to localhost:3000.

If you want to just run using the latest production API, you can run with the production NODE_ENV environment variable set with:

export NODE_ENV="production" && yarn run dev

React and Nextjs

This project's built with Nextjs and React. React is a frontend Javascript framework that replaces tools like jQuery. It's designed to limit the amount of global scope you can use and also lets you write easy reusable web components. If you've never worked with React before, checkout this tutorial.

Nextjs is a development environment and sever framework for React. It handles a lot of the URL routing that points things like ourWebsite.com/foo to a React component in the file pages/foo.js. The most important thing to know about Nextjs that that anything you put in the pages folder becomes a "route" which you can access via <yourUrlHere>/<yourPagesFileHere>.

So for example, right now there's a file called new.js in pages. If you go to localhost:3000/new, you'll see it's rendering the React component that's being exported from that file.

portfolio's People

Contributors

maxchehab avatar flaque avatar mdulin2 avatar

Watchers

James Cloos avatar Abdullah Alhassan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.