- frontend - https://models-fabrik.vercel.app/
- backend - https://models.up.railway.app/
Clone the Repository and cd to to models
git clone https://github.com/ish-u/models.git
cd models
-
Go to
server
folder and install packagescd server npm i
-
Create a
.env
file in theserver
folder -
Copy the variables from
.env.sample
to.env
and fill the required variables-
Setup MongoDB using Atlas using Atlas UI and get the
MONGO DB URI
or provide the URI of loacally installed MongoDB -
Generate
SESSION SECRET
using by runningrequire('crypto').randomBytes(64).toString('hex')
in node console -
Setup S3 Storage in AWS Console - S3 Documentation
-
The Final
.env
will look like thisPORT=5000 DB_URI=*MONGO DB URI* SESSION_SECRET=*SESSION SECRET* BUCKET=*AWS S3 BUCKET NAME* AWS_ACCESS_KEY_ID=*YOUR AWS SECRET KEY ID* AWS_SECRET_ACCESS_KEY=*YOUR AWS SECRET ACCESS KEY* DEV=TRUE
-
-
Run the
npm run dev
to start the development server -
The Server will be Live at
http://localhost:5000
-
Go to
models
folder and install packagescd models npm i
-
Create a
.env
file inmodels
folder and add the following to itVITE_API_URL=http://localhost:5000
-
Run the
npm run dev
to start the development server -
The Client will be Live at
http://localhost:5713