Skip to content

Commit d192e1d

Browse files
authored
Added 'pipenv run migrate' in README
When Columns are added or modified, before the `$ pipenv run upgrade` we need to run `$ pipenv run migrate`.
1 parent b98f80d commit d192e1d

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ You can update the `styles/index.scss` or create new `.scss` files inside `style
1111
### Components
1212
Add more files into your `./src/js/components` or styles folder as you need them and import them into your current files as needed.
1313

14-
💡Note: There is an example using the Context API inside `pages/demo.js`;
14+
💡Note: There is an example using the Context API inside `views/demo.js`;
1515

16-
### pages (Components)
17-
Add more files into your `./src/js/pages` and import them in `./src/js/layout.jsx`.
16+
### Views (Components)
17+
Add more files into your `./src/js/views` and import them in `./src/js/layout.jsx`.
1818

1919
### Context
2020
This boilerplate comes with a centralized general Context API. The file `./src/js/store/flux.js` has a base structure for the store, we encourage you to change it and adapt it to your needs.
2121

2222
React Context [docs](https://reactjs.org/docs/context.html)
2323
BreathCode Lesson [view](https://content.breatheco.de/lesson/react-hooks-explained)
2424

25-
The `Provider` is already set. You can consume from any component using the useContext hook to get the `store` and `actions` from the Context. Check `/pages/demo.js` to see a demo.
25+
The `Provider` is already set. You can consume from any component using the useContext hook to get the `store` and `actions` from the Context. Check `/views/demo.js` to see a demo.
2626

2727
```jsx
2828
import { Context } from "../store/appContext";
@@ -47,8 +47,9 @@ It is recomended to install the backend first, make sure you have Python 3.8, Pi
4747
| MySQL | mysql://username:password@localhost:port/example |
4848
| Postgress | postgres://username:password@localhost:5432/example |
4949

50-
3. Run the migrations: `$ pipenv run upgrade`
51-
4. Run the application: `$ pipenv run start
50+
4. Migrate the migrations: `$ pipenv run migrate` skip this step if there are no changes on Modules Columns
51+
5. Run the migrations: `$ pipenv run upgrade`
52+
6. Run the application: `$ pipenv run start
5253

5354

5455
### Front-End Manual Installation:

0 commit comments

Comments
 (0)