This is a simple taxi cab search application. This application backend is written on NextJs and frontend is written on ReactJs. Any user can search using his location (like: dhaka i.e
: after clicking search button the application will make a fake coordinate to search nearby available taxi cab. Without search key, search button will be disabled) and filter(like: Normal, Premium). User can combine this search and filter to get the desire data set.
Frontend
You will find the frontend code inside client directory. The Application will start from src/index.js
. The main redering logic and API call is written inside src/App.js
.
Backennd
Backend server is running from src/main.ts
. Inside this file the application instance is created with modules. Inside src/app.module.ts
all our necessary modules are imported(i.e:
MongooseModule
, ConfigModule
and TaxisModule
). From TaxisModule
the application exposing a controller and a servie for TaxisModule
. From src/taxi/taxis.controller.ts
this controller is exposing an API which is called from frontend. The src/taxi/taxis.controller.ts
is resposible for call service method from src/taxi/taxis.service.ts
, and the src/taxi/taxis.service.ts
is resposible for getting data from the database.
cp .env.example .env
Default host and port will be http://localhost:5000/api
or make the nessary changes in the .env
file.
$ npm install
cd client
cp .env.example .env
Default host and port will be http://localhost:3000
. vist and search near by taxi or make the nessary changes in the .env
file.
cd client
$ npm install
npx nestjs-command create:bulk-taxi
npx nestjs-command remove:all-taxi
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
cd client
# development
$ npm run start
# production
$ npm run build
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
- Author - Prosen Ghosh