Skip to content

Starter website to build dashboard agglomerations for state departments

License

Notifications You must be signed in to change notification settings

Samagra-Development/dashboard-website

Repository files navigation

Dashboard Websites

  • Starter react project to build static sites containing realtime dashboards and capture usage logs

Deployment

  • This project is deployed automatically via Github Actions
  • The environment must be configured to have an SSH_HOST, SSH_USERNAME and SSH_PRIVATE_KEY variable

nginx configuration

server {
        listen 80 default_server;
        listen [::]:80 default_server;
       
        root /home/dashboard-website/build;
      
        index index.html index.htm index.nginx-debian.html;

        server_name _;

        location / {
                # First attempt to serve request as file, then
                # as directory, then fall back to displaying a 404.                
                try_files $uri $uri/ /index.html;
        }
}

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

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

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

About

Starter website to build dashboard agglomerations for state departments

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5