TravelServices is a Micro-Services Architecture patterns implementation of Rail, Avia, Hotel tickets booking APIs, Traveler API and Client applications, all secured with Security API.
-
Install NodeJS: How to install NodeJS
-
Install and run MongoDB: How to install MongoDB
- Clone repo:
git clone https://github.com/svasorcery/travel-services.git
- Restore dotnet packages:
dotnet restore
- Restore angular client packages:
cd ./travel-services/Clients/HermesSpa/ClientApp
npm install
- Get and set pass.rzd.ru credentials
- Register (RU) | Register (EN)
- Store your login and password in RailAPI's
appsettings
.
- Successively import data from json files using
mongoimport
:
mongoimport -d kaolin -c countries --jsonArray --mode=upsert --upsertFields=ru --file mongo-countries.json
mongoimport -d kaolin -c stations --jsonArray --mode=upsert --upsertFields=ru --file mongo-stations.json