Giter Club home page Giter Club logo

magic's Introduction

TechStacks + Libraries used

Setup

  • First please clone this repo onto your desktop directory. Two ways to set up:
  1. Docker
  2. Manually with npm

Docker

  1. From the root directory, please run
    docker compose up

Manual

  1. You'll need postgres installed on your local machine.
  2. Once Postgres is installed, you'll need to create a database for this exercise. Please name the database 'magic'. From psql, you'd need to so something like:
psql                          // To launch the postgres terminal
create table magic           // To create the database
\q                           // Exit the terminal
psql -d magic                // to relaunch the terminal, but connected specifically to your new database.
  1. Once you have the database created, you're ready to run the server. Navigate back to the root directory, and run:
cd server
npm install
npm run start
  1. We will now need to run the client. Open a new terminal tab and run
cd client
npm install
npm run start

For either methods, we can test that the client works by going to the below URL and we should see a form.

http://localhost:3000/

We can also test that we are properly connected to the server by going to

http://localhost:3001/api/products/1

You should get a JSON response back from the server:

{
    "id":1,
    "name":"Magic Potion",
    "description":"Awesome's new revolutionary awesome skin product!",
    "price":49.99,
    "maxPurchase":3
}

magic's People

Contributors

chris510 avatar

Watchers

 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.