This is an example of how to set up the dev environment to work on Postitt.
At the moment, there are 2 .env
files for both repositories.
Syntax | Value |
---|---|
PORT | 5000 |
NODE_ENV | development |
APP_URL | http://localhost:5000 |
JWT_SECRET | "secret" |
ORIGIN | http://localhost:3000 |
Syntax | Value |
---|---|
NEXT_PUBLIC_SERVER_BASE_URL | http://localhost:5000 |
NEXT_PUBLIC_CLIENT_BASE_URL | http://localhost:3000 |
In Back-End/ormconfig.json
make sure you have the correct port, database, username and password for TypeORM to connect to Postgres.
Clone both repositories into any folder so they are like this:
Postitt-io
│
└──>Front-End
│
└──>Back-End
$~\Postitt-io\Back-End
Run the migration on the database to set up the tables correctly:
npm run typeorm migration:run
If you'd like some sample data to work with, you can seed the database with:
npm run seed
Then you can run the below command. This will start both the client and the server at the same time.
npm run dev