This repository has been archived on 2024-11-29. You can view files and clone it, but cannot push or open issues or pull requests.
2021-01-22 23:38:59 -05:00

58 lines
1016 B
Markdown

# Frontend for MigratorProject
Built using REACT, based on learning templates currently. DEVELOPMENT only
### Installation
- Clone repository
`git clone https://git.lovelynet.net/The_Bois/MigratorProject-frontend.git`
- Install dependencies
`npm install`
- Start scripts
##### Development server
```
npm start
```
##### Build for production
```
npm run build
```
The development server will start on `http://localhost:3000`
Get css docs here https://materializecss.com/
Form is provided by https://formik.org/docs/overview
react-tables docs here https://react-bootstrap-table.github.io/react-bootstrap-table2/
Default .htaccess file
```
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule . /index.html [L]
</IfModule>
```
env variables
```
REACT_APP_SITE_URL=SITEURL
REACT_APP_API_ADDRESS=ADDRESS
REACT_APP_API_KEY=APIKEY
```