Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fodp_vmp

Friends of Discovery Park - Vegetation Management Platform

Running the Frontend Vue.js client

Run yarn install within the new folder The server should install the necessary dependencies Run yarn run serve within the new folder This will launch the server on localhost:8080 You can now look at the application by visiting http://localhost:8080 on a browser

Running the Backend server

Run npm install within the server folder The server should install the necessary dependencies Run npm run start to start the server on port 5000 This will launch the server on localhost:5000 Port of the server can be changed by editing the .env / env.js files Requests can be made to the API from the frontend or using Postman or any other API client These are the following Endpoints:

User Routes

  • /api/v1/signup | POST: creates an user Sample Body:
{
	"email": "email@email.com",
	"first_name": "John",
	"last_name": "Doe",
	"password": "Extra_S1r0ng_passw0rD"
}
  • /api/v1/signin | POST: login for admin/user Sample Body:
{
	"email": "email@email.com",
	"password": "Extra_S1r0ng_passw0rD"
}

Admin Routes

  • /api/v1/admin/signup | POST: create admin
  • /api/v1/user/:id/admin | POST: upgrade the user to admin status
  • /api/vi/admin/users | GET: get a list of users
  • /api/vi/admin/table/:tableName | GET: retrieve a specific data table

About

Friends of Discovery Park - Vegetation Management Platform

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages