| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Run tests :
docker-compose up --exit-code-from webOr :
npm install
npm testRun :
npm startYou will find a file named .env.example on root directory of project.
Create a new file by copying and pasting the file and then renaming it to just .env
cp .env.example .envThe file .env is already ignored, so you never commit your credentials.
Change the values of the file to your environment. Helpful comments added to .env.example file to understand the constants.
Required env variables:
MONGODB_URL will be your MongoDB connection string.
JWT_SECRET will be your secret for jwt authentication.
JWT_TIMEOUT_DURATION will be the timeout for jwt validity.
MONGODB_URL=mongodb://127.0.0.1:27017/papisweb
JWT_SECRET=aStrongSecret
JWT_TIMEOUT_DURATION="2 hours".
├── app.js
├── package.json
├── bin
│ └── www
├── controllers
│ ├── AuthController.js
│ ├── BookController.js
│ └── MovieController.js
├── models
│ ├── BookModel.js
│ ├── MovieModel.js
│ └── UserModel.js
├── routes
│ ├── api.js
│ ├── auth.js
│ ├── book.js
│ └── movie.js
├── middlewares
│ ├── jwt.js
├── contracts-tests
│ ├── testConfig.js
│ ├── auth.js
│ ├── book.js
│ └── movie.js
└── public
├── index.html
└── stylesheets
└── style.cssnpm run devYou will know server is running by checking the output of the command npm run dev
Connected to mongodb:YOUR_DB_CONNECTION_STRING
App is running ...
Press CTRL + C to stop the process.This project is open-sourced software licensed under the MIT License. See the LICENSE file for more information.
| Back | FazBrowse Home | New Git URL |