Simple 3D Editor website
-
Front-end: React, Bootstrap, Babylonjs
-
Back-end: Express (Nodejs), Mongodb
- Download and install dependencies
# Clone fron-end branch
git clone -b front-end https://github.com/tracy2811/3d-editor.git
# Install back-end dependencies
cd back-end && npm i
# Install front-end dependencies
cd ../front-end && npm i- Run servers (developement mode)
Create .env file in back-end directory with format:
SECRET_KEY=ThisIsYourSecretKey
PORT=8000
MONGODB=URIToYourMongoDBDatabase
Then you are ready to go.
# Run back-end
cd ../back-end
npm start
# Run front-end
npm startBackend is now running on port 8000, frontend is on 3000.
Everything is set, now you can start developing.
-
Login: POST request to
http://locahost:8000/users/loginwithusernameandpasswordin body -
Register: POST request to
http://locahost:8000/users/registerwithusernameandpasswordin body
-
Get available models' information: GET request to
http://locahost:8000/models(withtokento get private models) -
Get model: GET request to
http://locahost:8000/models/FILENAME(withtokento get private model) -
Create new model: POST request to
http://locahost:8000/modelswithtoken, and.glbfile under namemodel -
Update old model: PUT request to
http://locahost:8000/models/FILENAMEwithtoken, and new.glbfile under namemodel -
Delete model: DELETE request to
http://locahost:8000/models/FILENAMEwithtoken
You can get information about api by making GET request to http://locahost:8000.
-
Icons from Font Awesome
-
Background image by Jonatan Pie on Unsplash