Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
awaisdar001 committed Sep 12, 2020
2 parents 75e4039 + 90225e2 commit 8f3e59b
Showing 1 changed file with 41 additions and 24 deletions.
65 changes: 41 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,48 +1,65 @@
# Django React Redux Frontend (DRRF)
# DestinationPakistan MFE(MicoFrontEnd)

microfrontend for DestinationPak.com

## Project Setup

1. Use the package manager [pip](https://pip.pypa.io/en/stable/) to install virtualenv.

## Project Setup
1. In order to use the app, make sure you have installed docker and docker compose.
2. Clone the repo
```bash
pip install virtualenv
git clone {git-clone-repo-url}
```
2. Create a virtual env & make sure you have `virtualenv` installed
3. Change the directory to the project folder.
```bash
virtualenv venv
cd {project-dir}/djreact
```
3. Enable virtualenv
4. Build the docker image.
```bash
source venv/bin/activate
make build
```
4. Install requirements
5. Run the docker container
```bash
make requirements
make run
```
5. Install Node Modules this will create node modules

6. Once that is done, you should be able to ssh/log/attach the docker container.
6.1 Get logs
```bash
make static
make logs
```
6. Run Djnago server
6.2 Attach container
```bash
make run
make app-attach
```
7. Run Webpack Watcher

6.3 Restart container
```bash
npm run hot
make app-restart
```

## Run Project
Running project is easy.
1. Run Django Server
```python
make run
6.4 Open container bash
```bash
make app-shell
```
6.4 Stop container
```bash
make stop
```
2. Run Webpack watcher

6.5 Destory container. Use with care, this will remove all devstack-related containers, networks, and volumes
```bash
make destroy
```

## Run Project
1. The `make` file contains most of the commands to be run the container.
`make run`

2. Run the frontend by following.
```bash
npm run hot
make app-shell
cd mfe
npm run
```


Expand Down

0 comments on commit 8f3e59b

Please sign in to comment.