-
Notifications
You must be signed in to change notification settings - Fork 14
Getting Started
Clone the SCE dev tool and follow the guide for setup: https://github.com/SCE-Development/SCE-CLI#setup
sce clone c
cd Clark
sce link c
- Install docker:
- run mongodb with:
sce run mongo
Ensure you have python3 installed and run the script with:
# if macOS or linux:
python3 setup.py
# if Windows:
python setup.py
To simply run the application's frontend, paste the below command into your terminal.
npm run start
Shortly after, a window in your browser will open with the website on http://localhost:3000
.
In another new terminal window or tab, run the application with the command below:
npm run server
In yet another new terminal window or tab, run the application with the command below:
npm start
After some time, the application will load in the browser's terminal.
- In the topmost directory of
Core-v4
, run
npm run create-user
Follow the prompts and if the website is running from the steps above, you should be able to login with this created account.
Pre-requisite: you will need a Google Cloud Platform project setup to complete this section.
-
Create a new
config.json
file in the/api/config/
directory by simply making a copy of the existingconfig.example.json
and renaming it. -
Open a terminal window and run:
npm run generate-token
-
Before anything, you must have a GCP project setup. The first 2 steps will prompt you for Client ID & Secret keys, obtain from https://console.cloud.google.com/ under the API Credentials section. Some GCP consoles look differently, so the info we need can be found in either of these:
-
-
The third step will prompt you to visit a link and get an auth code. You'll need to first authorize your GCP project, then copy the value in this text input, paste it into the server terminal and hit enter.
-
A
token.json
file should be created under/api/config/
and you're now good to go, let's see your authorization token being used. In a terminal window use the command: (make sure you have 2 other terminal windows running the frontend and mongoDB)NODE_ENV=production npm run server
-
Create an account with a fake email.
-
If you are taken to the confirmation page saying "Your application has submitted!", then you're good to go.
- Since signing up with a fake email, you won't be able to see the actual verification email.
- Note: you need access into the sce.sjsu@gmail.com email account in order to set this up.
- Note: If you need to repeat this process, delete any existing token.js file.
Prerequisites: Find the AWS-IOT
folder in the shared google drive folder and download it.
- Drag and drop the
AWS-IOT
folder intoCore-v4/api/
- Run
npm start
,npm run server
andmongod
commands in separate terminals - Login into the website as an admin and go to RFID Manager
- Follow the instructions on how to setup ESP32
Post any relevant screenshots in #development in the SCE Slack and we'll sort it out.