1- # React Seed - Setup
1+ # React Seed - Setup
22
33## Install dependencies
44
@@ -14,26 +14,25 @@ You can install Postgres or run your server in a Docker container.
1414
1515### Postgres
1616
17- * Install [ postgres] ( https://www.postgresql.org/ ) . When prompted to enter the ` postgres ` user password, use ` sa.pg.01 ` or one of your choice
18- * Make sure to update the password in ` server/datastore/create/knexfile.js ` if you picked a different password.
19- * For more information about setting up the server see [ official docs] ( https://wiki.postgresql.org/wiki/First_steps )
17+ * Install [ postgres] ( https://www.postgresql.org/ ) . When prompted to enter the ` postgres ` user password, use ` sa.pg.01 ` or one of your choice
18+ * Make sure to update the password in ` server/datastore/create/knexfile.js ` if you picked a different password.
19+ * For more information about setting up the server see [ official docs] ( https://wiki.postgresql.org/wiki/First_steps )
2020
2121### Docker
2222
23- * Install [ Docker] ( https://docs.docker.com/engine/installation/ ) and [ docker-compose] ( https://docs.docker.com/compose/install/ )
24- * Run ` yarn database:docker-server ` to create the docker container for the Postgres Server (volume to persist data will be mounted)
23+ * Install [ Docker] ( https://docs.docker.com/engine/installation/ ) and [ docker-compose] ( https://docs.docker.com/compose/install/ )
24+ * Run ` yarn database:docker-server ` to create the docker container for the Postgres Server (volume to persist data will be mounted)
2525
2626#### Structure and Data
2727
2828Once you have configured your Postgres server, run the following commands:
2929
30- * Create the ` reactseeddb ` database, ` pg ` user and grant access to database:
31- * ` yarn database:create `
32- * Create tables running migrations:
33- * ` yarn migrate:latest `
34- * Populate database running the seeds:
35- * ` yarn seed:run `
36-
30+ * Create the ` reactseeddb ` database, ` pg ` user and grant access to database:
31+ * ` yarn database:create `
32+ * Create tables running migrations:
33+ * ` yarn migrate:latest `
34+ * Populate database running the seeds:
35+ * ` yarn seed:run `
3736
3837## Start the app
3938
@@ -51,17 +50,16 @@ $ yarn dev # or (yarn run dev)
5150$ yarn prod # build and start
5251```
5352
54- Open browser on [ localhost:3000] ( http://localhost:3000/ )
55-
53+ Open browser on [ localhost:4000] ( http://localhost:4000/ )
5654
5755## NPM Scripts
5856
5957``` bash
60- $ yarn build # build production assets
58+ $ yarn build # build production assets
6159
62- $ yarn start # execute production server
60+ $ yarn start # execute production server
6361
64- $ yarn test # execute all tests
62+ $ yarn test # execute all tests
6563
6664$ yarn lint # execute linting
6765```
@@ -70,28 +68,27 @@ $ yarn lint # execute linting
7068
7169#### More scripts
7270
73- * ` test ` : exec all test (client uses ` jest ` , server uses ` tape ` )
74- * ` test:client ` : exec client test
75- * ` test:server ` : exec server test
76- * ` tdd ` : exec test (on watch mode)
77- * ` lint ` : exec linting (` eslint ` )
78- * ` migrate:* ` : knex migrations
79- * ` migrate:make ` : create migration script
80- * ` migrate:latest ` : exec migrations
81- * ` migrate:rollback ` : rollback migration
82- * ` seed:* ` : data seeds
83- * ` seed:make ` : create seed script
84- * ` seed:run ` : exec seeds
85- * ` stats ` : run ` npm ` stats
86- * ` build ` : build production assets
87- * ` start ` : exec production server
88- * ` dev ` : exec development server
89- * ` prod ` : build production assets and exec production server
71+ * ` test ` : exec all test (client uses ` jest ` , server uses ` tape ` )
72+ * ` test:client ` : exec client test
73+ * ` test:server ` : exec server test
74+ * ` tdd ` : exec test (on watch mode)
75+ * ` lint ` : exec linting (` eslint ` )
76+ * ` migrate:* ` : knex migrations
77+ * ` migrate:make ` : create migration script
78+ * ` migrate:latest ` : exec migrations
79+ * ` migrate:rollback ` : rollback migration
80+ * ` seed:* ` : data seeds
81+ * ` seed:make ` : create seed script
82+ * ` seed:run ` : exec seeds
83+ * ` stats ` : run ` npm ` stats
84+ * ` build ` : build production assets
85+ * ` start ` : exec production server
86+ * ` dev ` : exec development server
87+ * ` prod ` : build production assets and exec production server
9088
9189</details >
9290
93-
94- ## Development
91+ ## Development
9592
9693### Git Hooks (using ` husky ` )
9794
0 commit comments