Hosted at: https://e-study-production.up.railway.app/
Node.js v16 LTS is recommended
Backend API
- express.js (v4.18.2)
- sequelize.js (v6.25.2)
- PostgreSQL (v14 recommended)
Frontend React client
- Based on
create-react-app
- pre-configured to work with the api
- Bootstrap (v5)
- added to
/client/public/index.html
- added to
- React Router (v6)
Each team member will need to do this on their local machine.
- Check if you have PostgreSQL installed
- ✅ versions 10-14 should work
- 🚫 version 15 has not been tested
The project-starter template expects the following for local development:
- PostgreSQL User/Role
- name:
team-meeter
- password:
ctp2022
- name:
- PostgreSQL Database
- name:
estudy
- name:
If you are on Windows and installed pgAdmin follow our pgAdmin guide to create a user in PostgreSQL named team-meeter
with the password ctp2022
and a database named estudy
.
Create a user in PostgreSQL named team-meeter
with the password ctp2022
:
This only needs to be done one time on your machine You can create additional users if you want to.
createuser -P -s -e team-meeter
Create a separate db for this project:
createdb -h localhost -U team-meeter estudy
For local development you will need two terminals open, one for the api-backend and another for the react-client.
Clone this app, then:
# api-backend terminal 1
cp .env.example .env
npm install
npm run dev
# react-client terminal 2
cd client
npm install
npm start
- api-backend will launch at: http://localhost:8080
- react-client will launch at: http://localhost:3000
- api documentation will be at: http://localhost:8080/api-docs
In production you will only deploy a single app. The react client will build into static files that will be served from the backend.