The code for functionalprogramming.in
There are two apps in this project:
- API server at the root
./
- Client UI in
client/
directory.
git clone https://github.com/fpindia/functionalprogramming.in.git
cd functionalprogramming.in/
npm install
cd client
npm install
npm run dev
This will:
- Build both the server and client code.
- Start dev-servers for both the server and client code.
- The client app is configured to proxy backend requests to the local Node server. (See
"proxy"
config) - Open a browser window the client dev-server URL.
Create a heroku app.
heroku create
Or attach an existing app.
heroku git:remote -a <your app>
Push to Heroku to deploy.
git push heroku master
This deployment will automatically:
- detect Node buildpack
- build the app with
npm install
for the Node servernpm run build
for create-react-app
- launch the web process with
npm start
- serves
../client/build/
as static files - customize by adding API, proxy, or route handlers/redirectors
- serves
👓 More about deploying to Heroku.