53 lines
960 B
Markdown
53 lines
960 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/
|
|
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
|
|
``` |