Skip to content

Latest commit

 

History

History
72 lines (48 loc) · 1.54 KB

README.md

File metadata and controls

72 lines (48 loc) · 1.54 KB

Welcome to spinup-host-product 👋

Version

Product Side of spinup.host, an alternative to RDS

Prerequisites

  • You will need a GitHub Token, which you can get from,
https://github.com/settings/developers
  • Set the redirect URL to http://localhost:3000/login

  • Setup the tokens in the frontend first, create a .env file in the root of your frontend folder

  • In the .env file, add the following environment variable

REACT_APP_CLIENT_ID=4b2f989781687e3b6dc1 #only needed if using github authentication
REACT_APP_REDIRECT_URI=http://localhost:3001/login
REACT_APP_SERVER_URI=http://localhost:4434 # URL of the spinup API server
REACT_APP_GITHUB_SERVER=http://localhost:4434/githubAuth
  • You also need to setup environment variables in the backend folder
  • Go into the OauthBackend folder,
cd OauthBackend
  • Create the .env file, and set up the following environment variables
CLIENT_ID = <YOUR_CLIENT_ID>
CLIENT_SECRET = <YOUR_CLIENT_SECRET>

Install

  • First install all dependencies
cd spinup-dash && npm install
cd OauthBackend && npm install

Usage

  • To run the frontend
cd spinup-dash && npm start
cd OauthBackend && node index.js
  • To use the Docker image
docker build -t spinup .
docker run -itd -p 3000:3000 -v /home/src/app/node_modules -v $(pwd):/home/src/app spinup:latest

Authors

👤 Rajat Maheshwari, Hiten Sharma

Show your support

Give a ⭐️ if this project helped you!