Created by:
Vee Alianza
» Live Link «
| About | Technologies Used | Getting Started | Features |
Bringing people together through great food, culture and history! Food lovers, food enthusiasts, food connoisseurs alike can share and discover culinary experiences that awakens all senses with Mochi!
-
Clone this repository
git clone [email protected]:vee-alianza/mochi.git
-
Install dependncies to your root directory.
npm install
-
Create a
.env
file based on the.env.example
given below:
PORT=«port number»
DB_USERNAME=«database user name»
DB_PASSWORD=«database user password»
DB_DATABASE=«database name»
DB_HOST=localhost
JWT_SECRET=«generate strong secret here»
JWT_EXPIRES_IN=«integer values in seconds»
-
Initialize Sequelize package to create the necessary dependencies.
npx sequelize init
-
Create a user in Postgres and give the user the necessary privileges.
CREATE USER «username» WITH PASSWORD «password» CREATEDB;
-
Create Database, Migrate and Seed models.
npx dotenv sequelize db:create
npx dotenv sequelize db:migrate
npx dotenv sequelize db:seed:all
-
Start the app using:
npm start
-
Log in as a Demo user or create an account.
Logged in users are able to do the following:
- Create/Read/View/Delete Stories
- Create/Read/Delete Comments on stories