moved the project to GitLab: https://gitlab.com/leonp5/whfm
"wttConference" is a responsive website for conference of teacher trainees. It shows the conference information, makes a online registration possible and gives the promoters of the conference the possibility to see how many persons have registered.
-
clone/fork the repository
-
Go into the root directory and run
npm install
-
Further you need a .env file in the root folder with the necessary access informations for running a MongoDB, nodemailer and bcrypt package.
Your
.env
file should look like this:# MongoDB DB_NAME=<dabasename> PORT=<portnumber> MONGO_URL=<mongoURL> # Mail EMAIL_HOST=<host> INFO_MAIL=<email_address> INFO_MAIL_PW=<password> WORKSHOP_MAIL=<email_address> WORKSHOP_MAIL_PW=<password> # Token JWT=<yourToken>
-
Create a
.env
file in the client folder too. There you have to add your Mapbox Token (if you want to use Mapbox style). The key must start withREACT_APP_<nameWhatyouWant>
because it is a project created with Create React AppThe .env could look like this:
# Mapbox REACT_APP_MAPBOX_TOKEN=<yourMapboxToken>
- For a working backend you need mongodb on your machine.
Open three terminals.
First terminal: sudo service mongod start
(Linux)
Second terminal: npm run client
Third terminal: npm run server