For info, see https://noam-honig.github.io/salmaz/en.html
git clone https://github.com/noam-honig/food-basket-delivery.git
duplicate the sample.env
to .env
and set the correct values in it in terms of google api keys etc....
npm install
npm run build
npm run start
When the application runs in production it uses just one server for both api and angular static pages.
When developing we run two servers:
proxy.conf.json
ng-serve
to run angular cli development server (on port 4200)node-serve
to build and run the node js
server.create extension if not exists pg_trgm with schema pg_catalog;
insert into guest.helpers (id,name,phone,isadmin) values ('stam','noam','0507330590',true)
test1
or test2
or configure more in the proxy.conf.ts
file)Attach to Running Node Server
debug configurationWhen you run the application, you are prompted to enter a phone number and name. The first user that signs into a new environment is imprinted as it's admin.
After that you'll be asked to configure a password - and now you are the admin of this server.
You can create new environments for organizations by clicking the add environment button
The index file is changed on the fly as you run the application in production, according to the environment language and direction. For development purposes you can use the index_dev.html and change it to match what the language and direction you want to test at that time
To contribute to this repository please fork in and use pull requests.
For an excellent guide on how to do it, see Contribute to someone's repository