In order to start the seed use:
git clone --depth 1 https://github.com/gabucito/greencard.git
cd greencard
# compile typescript
tsc
# install the project's dependencies
npm install
# watches your files and uses livereload by default
npm start
# dev build
npm run build.dev
# prod build
npm run build.prod
- Put the
Rest
folder in your root folder in your webserverExample: var/www/html/
- If you haven't already created a mysql database named
greencard
, create one now (using mysql cli or phpmyadmin). - Inside
Rest
you will find the filegreencard.sql
. Import this to your mysql database (using mysql cli or phpmyadmin). - In
Rest/lib/mysql.php
you need to change usernameroot
to your mysql username andpassword
to your mysql password. - When working with Apache2 make sure you have
mod_rewrite
andmod_headers
enabled. - If using nginx make sure the path to
/rest
directs to theRest
folder.
Default application server configuration
var PORT = 5555;
var LIVE_RELOAD_PORT = 4002;
var DOCS_PORT = 4003;
var APP_BASE = '/';
Configure at runtime
npm start -- --port 8080 --reload-port 4000 --base /my-app/