ejs-Tinysite
ejs-Tinysite ejs(Nginx, Apache,...)
ejs-Tinysite is a tiny but completed website designed with ejs and does not require an additional web server software(e.g. Nginx, Apache,...).
(What can it do ?)
ejs-Tinysite
Tiny but completed. Basically, ejs-Tinysite is a website system that includes basic membership management.
(Features)
- eMail
Member register. Input a name, eMail and password to register.
- eMailSession
Member login. Build a session to keep the connection.
- Button
Member logout. Can logout with a logout button in the home page.
- users.jsonmongoDB
Member database. Store users data in a json file(users.json). It can be rewrite to use mongoDB easily.
- ejsheadheaderfooterejs
Page design. It is simple to use ejs to divide the page into header, header and footer templates and then combine them into any single page. In addition, you can also design the ejs layout according to your needs.
(How to use it?)
(Install)
- Github
Download project from Github
git clone https://github.com/WayneChang65/ejs-tinysite.git
- npm
Use npm to install dependencies
cd ejs-tinysite
npm install
-
Run program
npm start
(Extra Setting)
- SESSION_SECRETSession Secret
SESSION_SECRET. This environment variable is a session secret. For security, it can be set and there will be a default value if not set.
- EJS_TINYSITE_POSTPort(8080)
EJS_TINYSITE_POST. This environment variable is the port of the service listening. It can be set and there will be a default value(8080) if not set.
(Reference)
(Contribution)
ejs-tinysite (bug)Issue
Fork / Pull Request:)
Even though ejs-tinysite is a small project, I hope it can be improving. If there is any issue, please comment and welcome to fork or send Pull Request. Thanks. :)