Skip to content
This repository has been archived by the owner on Aug 17, 2022. It is now read-only.

The OLD non-static umbrella website for FPIndia, built using Purescript, deployed on heroku

License

Notifications You must be signed in to change notification settings

fpindia/OLD-functionalprogramming.in

Repository files navigation

FunctionalProgramming.in

The code for functionalprogramming.in

There are two apps in this project:

  1. API server at the root ./
  2. Client UI in client/ directory.

Local Deployment

Install NPM packages

git clone https://github.com/fpindia/functionalprogramming.in.git
cd functionalprogramming.in/
npm install
cd client
npm install

Run Dev Server

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.

Heroku Deployment

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 server
    • npm 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

👓 More about deploying to Heroku.

About

The OLD non-static umbrella website for FPIndia, built using Purescript, deployed on heroku

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published