Giter Site home page Giter Site logo

phuchoang92 / online-travel-agent Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 23.84 MB

Home Page: https://online-travel-agent.vercel.app

JavaScript 59.98% Dockerfile 0.39% Ruby 0.58% TypeScript 0.07% Java 1.82% Objective-C 0.57% Objective-C++ 0.28% C# 28.38% HTML 0.43% CSS 4.42% SCSS 3.10%

online-travel-agent's Introduction

online-travel-agent

Build Project

Run Backend

Run ASP.Net API

Step 1. Open the project using Visual Studio

Step 2. Open the NuGet package

Step 3. Install the following packages

Microsoft.EntityFrameworkCore.SqlServer
Microsoft.EntityFrameworkCore
Microsoft.AspNetCore.Authentication.JwtBearer

Setting up SQL Server Database

Step 1. Open appsettings.json and you will see the following code:

"ConnectionStrings": {
    "MyDb": "Server=localhost;Database=BookingHotel;User=sa;Password=password;Initial Catalog=BookingHotel;Integrated Security=True"
  },

Step 2. Change password with the password of sa user in your sql server management

Step 3. Run the project

Create URL using ngrok

Step 1. Download ngrok from https://ngrok.com/download

Step 2. Open ngrok that you have installed

Step 3. Run the following command:

ngrok http --host-header=localhost https://localhost:your_port/

Step 4. Copy the URL that can be used to access your API

Run Booking Mobile app

Install Android virtual device

Step 1. Install Android Studio and open it

Step 2. Open Device Manager and Create a new virtual device

Build app in Android

Step 1. Install all dependencies

yarn install

Step 2. Open the file axios.js in the folder BookingApp/src

Step 3. Change the value of baseURL to the ngrok URL that you have created

Step 4. Open terminal and run the cmd:

yarn react-native run-android

Run Admin App (Web App)

Step 1. Project setup

npm install

Step 2.Compiles and minifies for production

npm run build
npm run start

Step 3. Because we are using URL from the same host. The CORS policy will prevent us from calling API. To avoid this, open the Command Prompt and run:

"chrome.exe" --disable-web-security --disable-gpu --user-data-dir=~/chromeTemp

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.