This project is based on the All Weather Portfolio of Ray Dalio. It is adapted to be used in Europe.
I'm not a certified financial advisor so this is not financial advice! :D
nvm use 16.20.0
A key for https://www.alphavantage.co/
Add in your environment variables
## prep steps for first time users
npm i -g netlify-cli # Make sure you have the [Netlify CLI](https://github.com/netlify/cli) installed
git clone https://github.com/netlify/create-react-app-lambda ## clone this repo
cd create-react-app-lambda ## change into this repo
yarn # install all dependencies
## done every time you start up this project
ntl dev ## nice shortcut for `netlify dev`, starts up create-react-app AND a local Node.js server for your Netlify functions
This fires up Netlify Dev, which:
- Detects that you are running a
create-react-app
project and runs the npm script that containsreact-scripts start
, which in this project is thestart
script - Detects that you use
netlify-lambda
as a function builder, and runs the npm script that containsnetlify-lambda build
, which in this project is thebuild:lambda
script.
You can view the project locally via Netlify Dev, via localhost:8888
.
Each function will be available at the same port as well:
http://localhost:8888/.netlify/functions/hello
andhttp://localhost:8888/.netlify/functions/async-dadjoke
During deployment, this project is configured, inside netlify.toml
to run the build command
: yarn build
.
yarn build
corresponds to the npm script build
, which uses npm-run-all
(aka run-p
) to concurrently run "build:app"
(aka react-scripts build
) and build:lambda
(aka netlify-lambda build src/lambda
).