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-17 19:56:20 -05:00

52 lines
873 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/
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
```