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
- Prerequisites
- Installation
- Configuration
- Usage
- Execution for Booking Process
- Troubleshooting
- Contributing
Before you begin, make sure you have the following prerequisites installed on your system:
- NodeJs - 18.10.0
- MongoDB
- Clone the repository:
$ git clone https://github.com/lakshan-cd/powerInfinity_astronova.git
$ cd powerInfinity_astronova/
- 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
- Create a
.env
file in the root directory of the project. - 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
-
Configure Stripe for testing payment:
- 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
-
Log in to the Stripe payment dashboard using these credentials:
- Link: Stripe Dashboard(for below step iii and step iv)
- Email: [email protected]
- Password: Power@infinity
-
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
- Open another CMD window without quitting the previous one and run:
$ stripe trigger payment_intent.succeeded
- Start the server:
Navigate inside the Frontend directory and run:
$ npm run dev
Navigate inside the Backend directory and run:
$ npm start
-
Open your preferred browser and navigate to:
To book a journey to the stars, follow these steps:
-
Navigate to the homepage.
-
Click on "Book now."
-
Select the place you want to go, then choose the mode of transportation. Example:
- From: Mars
- To: Jupiter
- Mode: StarShip-4
-
Then, available schedules will be filtered out. Click on the desired schedule and then click "Book now."
-
Review the booking details. Click "Next" to proceed.
-
Choose your preferences, such as classes and passengers' details.
-
Click "Pay now" to confirm your booking.
After the payment is confirmed, you can view your bookings using the "My bookings" tab
If you encounter any issues or need assistance, please contact us at [email protected].
We welcome contributions from the community! If you'd like to contribute to Astronova, please contact us at [email protected].