Skip to content

A simple webapp to showcase upcoming sports events - powered by the Smarkets API

Notifications You must be signed in to change notification settings

Neezurft/whats_on

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Whats on - A simple webapp to showcase upcoming events (powered by the Smarkets API)

Credits:

This project was bootstrapped with Create React App for the front-end and serverless-webpack for the back-end.

How to run locally:

  • run npm install on the back_end/ folder to install dependencies.

  • run npm start to start the api proxy on the port 4000.

  • run npm install on the front_end/ folder to install dependencies.

  • run npm start to start the React development server in the port 3000.

How to deploy:

Note: AWS credentials must be set up in advace, if in doubt, go to this link.

Initial deployment:

  • run npm run deploy on the back_end/ folder - take note of the endpoint in the result (something like https://kjdhshjkds7681.execute-api.eu-west-2.amazonaws.com/staging).

  • edit config.json file in front_end/src and replace the "add-me-before-deployment" with the enpoint obtained in the last point.

  • run npm run deploy on the front_end/ folder. Take note of the StaticSiteS3BucketWebsiteURL result after running this command, that is the link to the webapp!

Further deployments:

  • run npm run deploy on the back_end/ folder to deploy changes to the api.
  • run npm run deploy on the front_end/ folder to deploy changes to the webapp (no changes to the config.json file are needed).

Reverting deployment and freeing resources:

  • run npm run remove on the back_end/ folder to remove the api.
  • run npm run remove on the front_end/ folder to remove the webapp.

Thanks for reading!

About

A simple webapp to showcase upcoming sports events - powered by the Smarkets API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published