This is the software that is executed on server giving services for an app that sell second hand products.
-
Nodejs > v8.9.1
-
[MongoDb] (https://www.mongodb.com/dr/fastdl.mongodb.org/osx/mongodb-osx-ssl-x86_64-3.4.10.tgz/download) > 3.4.10
- Please provide a .env file with the definition of the next variables
PORT=443
NODE_ENV=development||production||seeding||testing
DATABASE_URL=mongodb://domain:xxxxx/nodepop
JWT_SECRET=xxxx
JWT_EXPIRES_IN=Xh
- For testing the installation of the database run
sudo npm run install-db
npm lint
โ Add the name of the file .js to verifynpm run test
mocha test/integration
mocha test/unitest
mocha test/instance
sudo npm start
โ Start the server by default on development env.
The Nodepop Application is hosted on the subdomain https://nodepop.syllerim.com
, under the domain:
This is the list of endpoints the user have access:
- Create User
- Autenticate user
- Get All Items
- Get Tags
- Get Items filtered
Find in the next postman collection the list of endpoints ready for usage.
Static files served on the Nodepop Application are server under the path:
<nodepop>/images/fileName.png
Some examples of static files: