Skip to content

A diary where two people share their experiences with each other

License

Notifications You must be signed in to change notification settings

skindstrom/couples-diary

Repository files navigation

Couple's Diary

Build Status

Couple's Diary (CD) is a website where two people can share their daily experiences by writing about their days.

CD is build using express on the backend, and react on the frontend. To make the handling of a monorepo easier, lerna is used.

Installation

npx lerna bootrap

Configuration

Before starting the server, create a .env file in packages/server. An example .env file can be seen below

JWT_SECRET=anincrediblylongsecretthatitonlyusedonmymachine?!
DB_NAME=couplesdiary
HOSTNAME=localhost
SERVER_PORT=3333

Running the application (dev)

Server

cd packages/server
npm run start

Front-end

cd packages/app
npm run start

The website should open automatically in your browser at http://localhost:3000

Production build

Server

cd packages/server
npm run build

You can then run the production server by executing npm run start:prod.

NOTE that the server does not serve the client files. Instead one should use other means to serve files. nginx is one good option.

Client

cd packages/app
npm run build

Testing

Server

cd packages/server
npm run test:watch

Front-end

cd packages/app
npm run test

In CI

./scripts/test.sh

License

MIT

About

A diary where two people share their experiences with each other

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published