Skip to content

Latest commit

 

History

History
60 lines (39 loc) · 1.92 KB

README.md

File metadata and controls

60 lines (39 loc) · 1.92 KB

Good Deeds Data - Admin Web Portal

Setup

Development

yarn start - start app in development mode, start dev server, listens and reload on change

Environment Variables

🚨 The end product of this repo is static html/css/js/images, DO NOT put any secrets into any .env file 🚨

Read more about how create-react-app handles env variables here

use .env.development.local or .env.local to override what's in .env. (more info)

CSS

When necessary, global styles go in src/styles/global.scss

Use CSS Modules in your components using the same component name:
Component: SomeThing.js
CSS Module: SomeThing.module.css

We're using React-Bootstrap & Bootstrap 4.5
https://react-bootstrap.github.io/
https://getbootstrap.com/

JS

The project has absolute imports set up to ./src so you can import files easier and it makes import statements easier to copy and paste between files

// ok
import './components/Header';
import '../../utils/my-utils';
import './Header.module.scss';
// better
import 'components/Header';
import 'utils/my-utils';
import 'components/Header.module.scss';

This project was bootstrapped with Create React App.