This is the server of the dettiPOS system. To find out more about this project, view the detailed README on the client Github Repository.
This server was built using the Express framework. It is a simple, but powerful web server that can be used to serve static files and handle dynamic requests. It serves to send and receive data from the React front-end client and the database.
- Fork and clone this repo
- Run
npm i
to install all dependencies - Ensure MongoDB is running and accessible
- Create a
.env
file. Add aJWT_SECRET
environment variable in that file. This is used to sign and verify the JWT tokens used for authentication. - Run
node server.js
to start the server. - Follow the installation instructions for the client.