Skip to content

lakshan-cd/powerInfinity_astronova

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Astronova

Welcome to Astronova! This repository contains the code for the Astronova project. Astronova is a web application built using ReactJS, Node.js, Express, and MongoDB. It allows users to explore the cosmos and engage with space-related content.

MongoDB dump link : mongodump --uri mongodb+srv://lenzz:[email protected]/Astronova

Table of Contents

Prerequisites

Before you begin, make sure you have the following prerequisites installed on your system:

  • NodeJs - 18.10.0
  • MongoDB

Installation

  1. Clone the repository:
$ git clone https://github.com/lakshan-cd/powerInfinity_astronova.git
$ cd powerInfinity_astronova/
  1. Install dependencies:

Navigate to the Frontend directory and install dependencies:

$ cd powerInfinity_astronova/Frontend
$ npm install
$ npm install --force # If the previous command doesn't work

Navigate to the Backend directory and install dependencies:

$ cd powerInfinity_astronova/Backend
$ npm install
$ npm install --force # If the previous command doesn't work

Configuration

  1. Create a .env file in the root directory of the project.
  2. Add the following configuration variables:
PORT=4000
MONGO_URI=mongodb+srv://ishaninfo56:[email protected]/
SECRET=isdhendojoshifuyoshimarioluigipeachbowser
BASE_URL=http://localhost:3000/
SALT=10
HOST=powerinfinity.gmail.com
SERVICE=gmail
EMAIL_PORT=587
SECURE=true
STRIPE_KEY=sk_test_51NfRBgKbiqf0miWK1uERCQ70NU5q3oBYZdTCdk0TI7JJKfVl6DhfpO83qwyRwWpDAnS0dbaST7VPR7IOvDRm5hAv00c9HVOLLv
  1. Configure Stripe for testing payment:

    1. Install the Stripe CLI using Scoop. Run these commands in PowerShell:
    $ Set-ExecutionPolicy RemoteSigned -Scope CurrentUser # Optional: Needed to run a remote script the first time
    $ irm get.scoop.sh | iex
    $ scoop bucket add stripe https://github.com/stripe/scoop-stripe-cli.git
    $ scoop install stripe
    1. Log in to the Stripe payment dashboard using these credentials:

    2. Open a new CMD window on your machine and run these commands(Use above credentials when it needs):

    $ stripe login
    $ stripe listen --forward-to localhost:4000/api/stripe/webhook
    1. Open another CMD window without quitting the previous one and run:
    $ stripe trigger payment_intent.succeeded

Usage

  1. Start the server:

Navigate inside the Frontend directory and run:

$ npm run dev

Navigate inside the Backend directory and run:

$ npm start
  1. Open your preferred browser and navigate to:

    http://localhost:5173/

Execution for Booking Process

To book a journey to the stars, follow these steps:

  1. Navigate to the homepage.

  2. Click on "Book now."

  3. Select the place you want to go, then choose the mode of transportation. Example:

    • From: Mars
    • To: Jupiter
    • Mode: StarShip-4
  4. Then, available schedules will be filtered out. Click on the desired schedule and then click "Book now."

  5. Review the booking details. Click "Next" to proceed.

  6. Choose your preferences, such as classes and passengers' details.

  7. Click "Pay now" to confirm your booking.

After the payment is confirmed, you can view your bookings using the "My bookings" tab

Troubleshooting

If you encounter any issues or need assistance, please contact us at [email protected].

Contributing

We welcome contributions from the community! If you'd like to contribute to Astronova, please contact us at [email protected].

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published