mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-24 01:18:01 +02:00
Update developer-guide.md
This commit is contained in:
parent
8f6b89cc9e
commit
706e711819
@ -6,7 +6,8 @@ Before developing on this project you will need two things:
|
|||||||
- Node.js 14.x or newer
|
- Node.js 14.x or newer
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm run start:dev
|
yarn install
|
||||||
|
yarn run start:dev
|
||||||
```
|
```
|
||||||
|
|
||||||
## PostgreSQL {#postgresql}
|
## PostgreSQL {#postgresql}
|
||||||
@ -48,10 +49,10 @@ In order to start the application you will need Node.js v14.x or newer installed
|
|||||||
|
|
||||||
```
|
```
|
||||||
// Install dependencies
|
// Install dependencies
|
||||||
npm install
|
yarn install
|
||||||
|
|
||||||
// Start server in development
|
// Start server in development
|
||||||
npm start:dev
|
yarn start:dev
|
||||||
|
|
||||||
// Unleash UI
|
// Unleash UI
|
||||||
http://localhost:4242
|
http://localhost:4242
|
||||||
@ -60,7 +61,7 @@ http://localhost:4242
|
|||||||
http://localhost:4242/api/
|
http://localhost:4242/api/
|
||||||
|
|
||||||
// Execute tests in all packages:
|
// Execute tests in all packages:
|
||||||
npm test
|
yarn test
|
||||||
```
|
```
|
||||||
|
|
||||||
## Database changes {#database-changes}
|
## Database changes {#database-changes}
|
||||||
@ -76,7 +77,7 @@ To run migrations, you will set the environment variable for DATABASE_URL
|
|||||||
Use db-migrate to create new migrations file.
|
Use db-migrate to create new migrations file.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
> npm run db-migrate -- create YOUR-MIGRATION-NAME
|
> yarn run db-migrate create YOUR-MIGRATION-NAME
|
||||||
```
|
```
|
||||||
|
|
||||||
All migrations require one `up` and one `down` method.
|
All migrations require one `up` and one `down` method.
|
||||||
@ -106,13 +107,13 @@ exports.down = function(db, cb) {
|
|||||||
Test your migrations:
|
Test your migrations:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
> npm run db-migrate -- up
|
> yarn run db-migrate up
|
||||||
> npm run db-migrate -- down
|
> yarn run db-migrate down
|
||||||
```
|
```
|
||||||
|
|
||||||
## Publishing / Releasing new packages {#publishing--releasing-new-packages}
|
## Publishing / Releasing new packages {#publishing--releasing-new-packages}
|
||||||
|
|
||||||
Please run `npm run nsp` and `npm run test` checks before publishing.
|
Please run `yarn test` checks before publishing.
|
||||||
|
|
||||||
Run `npm run publish` to start the publishing process.
|
Run `npm run publish` to start the publishing process.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user