backend (Golang), frontend (JavaScript, Jquery)
This is an example of sending and receiving data from/to external sources and the operations of creating, reading, updating and maintaining data. Searching and creating sample reports is one of the project goals.
Special thanks to https://github.com/OmidHekayati ❤️ for training support
- Identification, Authentication, Authorization to control user services(JWT)
- Create Validation service
- Export data to csv file
- Send sms for different service(s)
- Send email for different service(s)
- Create and develop internal database to "data service(ing)"
- Create reports, listen and export official data(s) by api(s) [b2e]
- implement alert like (sweetAlert and nprogress) [b2e]
- Call SepehrAPI for flight ticket attribute
- Call GRS for hotel reservation
- Call Safar724 bus ticket
- Call varan CIP, airport services
- Build with storage(s) type tags
- Multi language service(s)
- Create product wiki
- Create UI web application
- Create Mobile application (Android)
- Import data from external source csv file
- Listen and export business data to applicant(s) [b2c]
- use a web framework and router
- create a collection for api(s) document(s)
- Call Some Api(s) [b2b]
- Insert and update country(ies) and its property(ies)
- Send some data and receive processed data from provider, (lat and lng of a city and publish online traffic duration and distance[neshan.org])
- Use general packages (lib)s
$ go build -tags storageType(exmp: memory) -o bin/telnote
$ nano /lib/systemd/system/telnote.service
[Unit]
Description=telnote
[Service]
Type=simple
Restart=always
RestartSec=5s
ExecStart=/home/aliz/go/src/tel-note/bin/telnote
[Install]
WantedBy=multi-user.target
$ service telnote start
$ service telnote restart
$ service telnote status
$ service telnote enable
$ service telnote stop
- UniversalTutorial(for get countries)
Apply to get services from this site: universal-tutorial sdk/Universal/UniversalMetadata.go
- Neshan(for get cities service(s))
Apply to get services from this site: platform.neshan.org/api/ sdk/Universal/NeshanMetadata.go
- IranCities.csv (for get cities)
env/IranCities.csv
- Sample data
Create examples of all available entities for testing:
- file: env/sampleData.go
- service: services/sampleData/fillSampleData.go & getSampleData.go
- cli: reg->data
- route: 127.0.0.1:1212/fill-data and get-data
- Protocols:s
- city
- contact
- country
- customer
- job
- person
- sex
- cli->config->RunAppType = ""
- cli->config->RunAppType = "serv"
- city
- 127.0.0.1:1212/get-city
- 127.0.0.1:1212/add-city
- 127.0.0.1:1212/edit-city
- 127.0.0.1:1212/find-city-char
- 127.0.0.1:1212/find-city-id
- 127.0.0.1:1212/delete-city
- 127.0.0.1:1212/distance-time-between-two-city
- contact
- 127.0.0.1:1212/get-contact
- 127.0.0.1:1212/add-contact
- 127.0.0.1:1212/edit-contact
- 127.0.0.1:1212/find-contact-char
- 127.0.0.1:1212/find-contact-id?id=2
- 127.0.0.1:1212/delete-contact-id
- 127.0.0.1:1212/delete-contact-all
- country
- 127.0.0.1:1212/country-list
- customer
- job
- person
- 127.0.0.1:1212/find-person-id?pid=2
- sex
/docs/tel-note.postman_collection.json
or simply browse:
http://127.0.0.1:1212/index.html
A sample SPA PWA with "Ajax" request which call routes ...
- HTML
- CSS Boostrap -v 5.1.3
- jQuery 3.6.0
- Ajax
/UI/tel-note.html
for continue on existing repo:
cd existing_repo
git remote add origin `git address`
git branch -M main
git push -uf origin main
for production, there is stable main branch:
git checkout main
for develop:
git checkout -b developing
after all, back to main:
git merge --no-ff developing