/sw-web

React web app consuming the SW API

Primary LanguageJavaScript

This project was bootstrapped with Create React App.

Available Scripts

Start the server

  • Create an .env file on the root folder an set this environment variables to properly works with the API
PORT=5000
REACT_APP_API_URL=http://localhost:3000/api/v1

then run

yarn start

The app will run in the development mode.
Open http://localhost:5000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

Run tests

yarn test

Todo...

Build the app for production

  • Create an .env file on the root folder an set this environment variables to properly works with the API
PORT= "Depending on the server configuration"
REACT_APP_API_URL= path_to_api

then run

yarn run build