Begin by cloning the repository and navigating into the project directory:
git clone <your_repo_url> dragon-rideshare
cd dragon-rideshare- Move into the
backfolder:cd back - Copy the example environment file to create a new
.envfile:cp .env.example .env
- Open
.envand set yourJWT_SECRET:- Generate a secure secret key from jwtsecret.com/generate.
- Replace
your_secret_keyin the.envfile with the generated key.
While inside the back folder, execute the following commands:
npm run setup # Initializes the database
npm run full-deploy # Installs dependencies and starts the applicationOnce the server is running, you can access the full website at:
- Website URL: http://localhost:3000
The frontend is served directly through Express.