Skip to content

Latest commit

 

History

History
74 lines (54 loc) · 2 KB

SETUP.md

File metadata and controls

74 lines (54 loc) · 2 KB

Workshop 21 - SETUP

Dependencies

Please make sure you have the following programs installed:

To install node and npm:

  • under fedora: sudo dnf install nodejs.
  • under ubuntu: sudo apt install nodejs npm.

To install yarn: npm install --global yarn

Github

You will need a Github repository to use Netlify 📂

  • Create a Github repository (named: Serverless-Gifs-App for example) and clone it with git clone
  • Download the files
  • Run the following commands:
mv Netlify-App/* Netlify-App/.* [YOUR REPO NAME]
cd [YOUR REPO NAME]

# Install the dependencies
yarn install

# To start a server
yarn start
  • To check if everything is good, go to http://localhost:3000

    You should see:

    Netlify Setup Page

  • Shut down the server (Ctrl + C)

To finish this part, we're gonna push everything on github 📌

  • Commit and push

Netlify

  • Go to Netlify website and create an account (signup using github) if you haven't already one

Giphy

  • Go to Giphy website
  • Click the Create an App button
  • Create an account
  • You should get a private key on your dashboard
  • Take care of it, you will need it later !

Serverless Framework

Not inside your github repository created above

unzip Serverless-API.zip
cd Serverless-API

# Install the dependencies
yarn install

# Now we gonna verify that the api is working
yarn test
# You should the get all the tests successful (in green)

Go back to the exercise