A quickstart allowing your users to sign up for the site and be loged in.
These dependencies are all installable from npm and should work on Windows, Linux and Mac, and are allready listed in the package.json.
-
git clone
the project -
run
npm install
in a command line from the root folder to install the node depencies -
run
npm start
from the same location to start the server
By default the data is served via a REST API you will have acess to the following routes:
url | method | description |
---|---|---|
http://localhost:3000/ | GET | default route for server should show a static mesage |
http://localhost:3000/users/login | POST | route for a user to login |
http://localhost:3000/new | POST | add a new user |
http://localhost:3000/delete | DELETE | remove a user from site |
http://localhost:3000/update | PUT | update a user (name, is admin etc) |
There is only one model in the application, the user model, since this is a seed/quickstart the user is encouraged to change the model and add his own.
The database is found in in the db folder, I recommend using the Firefox sqlite manager or the Google Chrome SQLite Editor or SQLiteStudio.