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 start
Backend 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/login
withusername
andpassword
in body -
Register: POST request to
http://locahost:8000/users/register
withusername
andpassword
in body
-
Get available models' information: GET request to
http://locahost:8000/models
(withtoken
to get private models) -
Get model: GET request to
http://locahost:8000/models/FILENAME
(withtoken
to get private model) -
Create new model: POST request to
http://locahost:8000/models
withtoken
, and.glb
file under namemodel
-
Update old model: PUT request to
http://locahost:8000/models/FILENAME
withtoken
, and new.glb
file under namemodel
-
Delete model: DELETE request to
http://locahost:8000/models/FILENAME
withtoken
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