Tennsoku / SaoYe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SaoYe

This is the source code of SaoYe (*也) website.

Set up.

You need MongoDB and NodeJS to run SaoYe in the local.

  1. In sub-directory saoye, run npm install.
  2. Within the directory, create file .env. Type in the following content in .env file:
NODE_ENV="development"
COOKIE_SECRET=<COOKIE_SECRET> // Just some random string is fine.
  1. Ensure your mongo service is run. Then run npm start. The website should be able to access from localhost:3000.

Deployment

You have to have the proper permission on heroku dyno.

  1. In you repo, git remote add heroku <path-to-git-repository>.
  2. git fetch heroku.
  3. When you need to deploy, (in root repository) use git push heroku git subtree split --prefix saoye master:master --force .

About


Languages

Language:JavaScript 85.1%Language:HTML 11.8%Language:CSS 3.1%