Skip to content

Latest commit

 

History

History
57 lines (36 loc) · 966 Bytes

README.md

File metadata and controls

57 lines (36 loc) · 966 Bytes

Backend+ generated app

This app is generated by backend+ ( https://backend.plus )

Directory structure

Top
│   .babelrc
│   createSchema.sql
│   docker-compose.yml
│   Dockerfile
│   package.json
│   README.md
│   webpack.config.js
│   
└───backend
└───frontend
└───public
└───uploads

How to start development

  1. Start docker container

$ docker-compose up -d

  1. Login to docker

docker exec -it BP_generated_app /bin/bash

  1. Install npm

npm install

  1. Build frontend

npm run build

  1. Create mysql schema

mysql -h mysql -u bpuser -p db < createSchema.sql Password : FknSC6GNAQ

You have mysql connection info in docker-compose.yml

  1. Start server

node backend/index.js

  1. Open http://localhost:8080 in browser ( credentials are admin/password )

  2. Stop container, exit from docker container first then

$ docker-compose down