Node.js (v12)
Yarn
PostgreSQL (v10)
- Run
yarn
command to install dependencies - Copy
ormconfig_template.json
file toormconfig.json
(Useormconfig_template_dev.json
for development purposes) - Setup database settings inside
ormconfig.json
file (Remember to have your database created) - Copy
src/config/config_template.ts
file tosrc/config/config.ts
- Setup extra settings inside
src/config/config.ts
file - Run Migrations (Add some Currencies, Countries and a Admin User)
- Enter in frontend folder (React)
- Run
yarn
command to install React dependencies
yarn
cp ormconfig_template.json ormconfig.json
nano ormconfig.json
cp src/config/config_template.ts src/config/config.ts
nano src/config/config.ts
yarn run migration:run
cd frontend
yarn
- Run ./build.sh (In root folder)
- If you get no errors, open your browser in http://localhost:8080
# Remember to use this orm config "ormconfig_template.json"
./build.sh
- Run
yarn start
in the root folter command to start Node.js backend - Open another terminal and enter in folder frontend
- Run
yarn start
command to start React frontend - If you get no errors, open your browser in http://localhost:3000
# Remember to use this orm config "ormconfig_template_dev.json"
yarn start
# In other terminal
cd frontend
yarn
yarn start
- Build as production
- Run
yarn test
# Remember to use this orm config "ormconfig_template.json"
./build.sh
yarn test